Fork me on GitHub
#aleph
<
2018-06-27
>
alexyakushev16:06:06

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.

alexyakushev16:06:13

That works only on deferreds, unfortunately

alexyakushev16:06:02

Not on streams

hiredman16:06:25

right, and it doesn't appear to have any way to cancel deferreds that are the result of a take on a stream

alexyakushev16:06:15

AFAIK, the implementation of alt! is half of core.async's complexity

alexyakushev16:06:28

But I wonder what can be used instead

hiredman16:06:39

it is too bad neither core.async nor manifold is built on the ideas from concurrent ml

hiredman16:06:28

manifold's notion of deferreds seems to be almost there