Added promises paragraph
This commit is contained in:
@@ -402,4 +402,17 @@ impl Runtime {
|
||||
We're keeping this super simple, and you might wonder what's the difference
|
||||
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.
|
||||
just used as timers.
|
||||
|
||||
## From callbacks to promises
|
||||
|
||||
You might start to wonder by now, when are we going to talk about Futures?
|
||||
|
||||
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.
|
||||
|
||||
Promises is not only used in Javascript but in other languages as well
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user