Effect CommunityEC
Effect Community3y ago
58 replies
Nomadin

Simplifying Stream and Callback Pair Creation

What is the easiest way to get a pair of stream and a callback which, when called, emits one value on the stream?

I've achieved the goal using Hub.unbounded and Stream.fromHub and hub.publish, but it seems boilerplate and wonder if there is more idiomatic way of doing this.
Was this page helpful?