Static cros_async::blocking::cancellable_pool::EXECUTOR
source · static EXECUTOR: Lazy<CancellableBlockingPool>
Expand description
Global executor.
This is convenient, though not preferred. Pros/cons:
- It avoids passing executor all the way to each call sites.
- The call site can assume that executor will never shutdown.
- Provides similar functionality as async_task with a few improvements around ability to cancel.
- Globals are harder to reason about.