Update 1_futures_in_rust.md

This commit is contained in:
Constantine Solovev
2020-12-21 21:00:52 +04:00
committed by GitHub
parent 4f4e6be15a
commit f38bc31bd3

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.