Added promises paragraph
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user