Sending data across flows
Channel
and you use its capabilities through two key functions.
std.createChannelEmitter
topic
as a parameter, creates a Channel
for that topic and returns an emitter
which will let you dispatch events.
std.registerChannelListener
topic
and a listener
. The listener
must return a FlowExecutor
With these params, whenever there’s an event
on the channel for given topic, the listener
is invoked.
For example: