Sorry if this was asked times before. What is the correct way to emulate core.async's alt!
on Manifold streams? I'm looking for "takes exactly from one stream" behavior.
https://github.com/ztellman/manifold/blob/master/src/manifold/deferred.clj#L1125
That works only on deferreds, unfortunately
Not on streams
right, and it doesn't appear to have any way to cancel deferreds that are the result of a take on a stream
Exactly
AFAIK, the implementation of alt!
is half of core.async's complexity
But I wonder what can be used instead
it is too bad neither core.async nor manifold is built on the ideas from concurrent ml
manifold's notion of deferreds seems to be almost there