Expand description
Provides an async blocking pool whose tasks can be cancelled.
Structs§
- Cancellable
Blocking Pool - A thread pool for running work that may block.
- Inner 🔒
- State 🔒
Enums§
Constants§
Statics§
- EXECUTOR 🔒
- Global executor.
Functions§
- unblock
- Spawn a task to run in the
CancellableBlockingPoolstatic executor. - unblock_
disarm - Marks all the queued and in-flight tasks as cancelled. Any tasks queued after
disarming will be cancelled. Doesn’t not wait for all the tasks to get cancelled.