3 ms·
You do not lose access to it. A short version of the answer is that at its core, you create a chain of futures, and then place them on an executor. The executo
by steveklabnik 8y ago
You do not lose access to it.
A short version of the answer is that at its core, you create a chain of futures, and then place them on an executor. The executor is responsible for executing them.
Async is sugar for creating a chain of futures. Doing that stuff is a property of the executor. Completely different axis.
(And tokio today has a multi-threaded, work-stealing executor, for example.)
- ketralnis 8y agoI see, so the "root" Future in the chain is bound to an executor and that's where the "which event loop" part is specified