aleph

alexyakushev 2018-06-27T16:21:06.000147Z

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.

alexyakushev 2018-06-27T16:27:13.000503Z

That works only on deferreds, unfortunately

alexyakushev 2018-06-27T16:29:02.000047Z

Not on streams

2018-06-27T16:44:25.000250Z

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

alexyakushev 2018-06-27T16:48:45.000266Z

Exactly

alexyakushev 2018-06-27T16:49:15.000127Z

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

alexyakushev 2018-06-27T16:49:28.000414Z

But I wonder what can be used instead

2018-06-27T16:52:39.000355Z

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

2018-06-27T16:54:28.000069Z

manifold's notion of deferreds seems to be almost there