Added promises paragraph

This commit is contained in:
Carl Fredrik Samson
2020-04-03 00:12:52 +02:00
parent 8900666a55
commit 720cdfb36d
5 changed files with 28 additions and 3 deletions

View File

@@ -575,6 +575,12 @@ impl Runtime {
between this approach and the one using OS threads. The difference is that the
callbacks are run on the same thread. The OS threads we create are basically
just used as timers.</p>
<h2><a class="header" href="#from-callbacks-to-promises" id="from-callbacks-to-promises">From callbacks to promises</a></h2>
<p>You might start to wonder by now, when are we going to talk about Futures?</p>
<p>Soon, my dear friend. There is a point to all this. You see, syntactically
the development of Rusts concurrency primitives mirrors that of Javascripts so
we're soon about to segway over to our main topic.</p>
<p>Promises is not only used in Javascript but in other languages as well</p>
<h1><a class="header" href="#some-background-information" id="some-background-information">Some background information</a></h1>
<blockquote>
<p><strong>Relevant for:</strong></p>