-
Notifications
You must be signed in to change notification settings - Fork 1
Sequencer
Dan Stocker edited this page May 30, 2019
·
1 revision
Usage: createSequencer<V>()
Module: flowcode-async
Type: Sequencer<V>
Input ports:
-
d_val:V -
r_tag:any
Output ports:
-
d_val:V
Forwards input values in an order that matches the reference input.
import {connect} from "flowcode";
import {createSequencer} from "flowcode-async";
const sequencer = createSequencer();
connect(sequencer.o.d_val, console.log);
sequencer.i.d_val("a", 2); // doesn't log
sequencer.i.r_tag(null, 1);
sequencer.i.r_tag(null, 2);
sequencer.i.d_val("b", 1); // logs: "b" 1, "a" 2