core-async 2022-10-25

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?

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

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

oh yeah makes sense, thanks

Why is it called a ManyToManyChannel?

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

Alex Miller (Clojure team) 2022-10-26T18:03:30.777899Z

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

Alex Miller (Clojure team) 2022-10-25T20:59:21.082689Z

many producers / many consumers