Expand description
Executor module providing a cooperative async executor.
This module implements a high-performance async executor that uses memory-mapped task arenas and worker threads for efficient task scheduling and execution.
§Architecture
The executor consists of:
Executor: Public API for spawning and managing async tasksExecutorInner: Internal shared state for task spawningWorkerService: Manages worker threads that execute tasksTaskArena: Memory-mapped arena for task storageJoinHandle: Future that resolves when a spawned task completes
Modules§
- deque
- mpsc
- preemption
- Preemptive scheduling support for worker threads.
- signal
- Signal coordination primitives for lock-free work scheduling.
- summary
- task
- ticker
- timer
- timer_
wheel - waker
- worker
Structs§
- Executor
- Cooperative executor executor backed by
MmapExecutorArenaand worker threads. - Executor
Config - Join
Handle - Awaitable join handle returned from
Executor::spawn. - Runtime