Fork me on GitHub
#core-async
<
2022-10-25
>
Quentin Le Guennec10:10:38

Can I wait for a future to complete in a go block, such as taking from the go channel takes from the completed future result?

vlaaad11:10:28

(a/thread @(future ...)) ?

vlaaad11:10:44

You can also use CompletableFuture to not block a thread but instead add a callback that will submit a value to the channel

Quentin Le Guennec11:10:47

oh yeah makes sense, thanks

nodename20:10:05

Why is it called a ManyToManyChannel?

Alex Miller (Clojure team)20:10:21

many producers / many consumers

nodename17:10:13

Does that mean anything can >! into it or <! from it?

Alex Miller (Clojure team)18:10:30

any number of things can >! or <! (or >!! or <!!)