By default, meiosis-setup
uses its simple-stream
implementation. If you are curious, see
here
for the source code.
You can use a different stream implementation. The following two stream libraries work out-of-the-box:
Use the stream
property to specify the stream implementation that you want to use:
// Using Flyd
import flyd from 'flyd'
const cells = setup({ stream: flyd });
// Using Mithril Stream
import Stream from 'mithril/stream';
const cells = setup({ stream: Stream });
In your project, you can use the simple stream implementation that comes with meiosis-setup
by
importing it:
import { simpleStream } from 'meiosis-setup/simple-stream';
Then you can use simpleStream.stream<type>()
and simpleStream.scan()
: