The Primitives of Elixir Concurrency: a Full Example
The Primitives of Elixir Concurrency: a Full Example
Let’s finally put in practice what we’ve seen about concurrency primitives in Elixir!
In this article we see how to use spawn
, send
and receive
to make multiple concurrent HTTP requests, merging the results in a single one. Then we see how to refactor our code with Task
, which makes everything easier.
The most passionate will find a small challenge at the end.
Read next Walk Through of Phoenix Live View