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: createSampler<V>()
createSampler<V>()
Module: flowcode-async
Type: Sampler<V>
Sampler<V>
Input ports:
d_val
V
a_smp
any
Output ports:
Forwards last input value on receiving a sampling action.
import {connect} from "flowcode"; import {createSampler} from "flowcode-async"; const sampler = createSampler(); connect(sampler.o.d_val, console.log); sampler.i.d_val(5); sampler.i.d_val(3); sampler.i.a_smp(); // logs: 3