Does Scala Async do everything Clojure core.async does?

In this presentation, Haller talks about Scala Async.

In this presentation , Rich Hickey talks about Clojure core.async.

Both seem to be macros, but Scala Async (correct me if I am wrong) does not seem to have a concept of CSP or channels.

What is the difference between Scala Async and Clojure core.async?

+6
source share
1 answer
Macro

core.async go provides non-blocking input and output operations for "channels" that otherwise block many-to-many queues.

Scala Async async mask provides a non-blocking wait operation for regular Future s results.

So the answer is no. core.async is the connection between parallel processes, and Scala Async deals with simply waiting for the completion of parallel processes. core.async can easily mimic the functionality of Scala Async, but not vice versa.

+8
source

Source: https://habr.com/ru/post/958691/


All Articles