<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>send on Poeticoding</title><link>https://www.poeticoding.com/tag/send/</link><description>Recent content in send on Poeticoding</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 04 May 2019 19:10:25 +0000</lastBuildDate><atom:link href="https://www.poeticoding.com/tag/send/index.xml" rel="self" type="application/rss+xml"/><item><title>The Primitives of Elixir Concurrency: a Full Example</title><link>https://www.poeticoding.com/the-primitives-of-elixir-concurrency-full-example/</link><pubDate>Tue, 19 Mar 2019 15:39:08 +0000</pubDate><guid>https://www.poeticoding.com/the-primitives-of-elixir-concurrency-full-example/</guid><description>&lt;p>Previous articles about Concurrency in Elixir:\&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://www.poeticoding.com/spawning-processes-in-elixir-a-gentle-introduction-to-concurrency/">How to spawn an Elixir process&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.poeticoding.com/hey-process-there-is-a-message-for-you/">How to send and receive messages between processes&lt;/a>&lt;/li>
&lt;/ul>
&lt;p>Let’s put in practice what we’ve seen in the last few articles about concurrency. In this article we see how to fully make our &lt;a href="https://www.poeticoding.com/spawning-processes-in-elixir-a-gentle-introduction-to-concurrency/#http_api_requests">initial cryptocurrency example&lt;/a>, using just &lt;a href="https://github.com/edgurgel/httpoison" target="_blank" rel="noopener">HTTPoison&lt;/a> module and &lt;code>spawn&lt;/code>, &lt;a href="https://hexdocs.pm/elixir/Kernel.html#send/2" target="_blank" rel="noopener">send&lt;/a> and &lt;code>receive&lt;/code> to handle concurrency. At the end we will refactor it using &lt;a href="https://hexdocs.pm/elixir/Task.html" target="_blank" rel="noopener">Task&lt;/a>, which makes everything far easier!&lt;/p></description></item></channel></rss>