We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Usage: createSequencer<V>()
createSequencer<V>()
Module: flowcode-async
Type: Sequencer<V>
Sequencer<V>
Input ports:
d_val
V
r_tag
any
Output ports:
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