Merge pull request #27 from RicoGit/patch-1

Update 1_futures_in_rust.md
This commit is contained in:
Carl Fredrik Samson
2020-12-21 19:37:57 +01:00
committed by GitHub

View File

@@ -123,7 +123,7 @@ understand the lifecycle and ownership of a Waker, you'll understand how futures
perspective. Here is the lifecycle:
- A Waker is created by the **executor**
- When a guture is registered with an executor, its given a clone of the Waker object created by
- When a future is registered with an executor, its given a clone of the Waker object created by
the executor. Since this is a shared object (e.g. an `Arc<T>`), all clones actually point to the
same underlying object
- The future clones the Waker and passes it to the reactor, which stores it to use later.