Module runtime

Module runtime 

Source
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 tasks
  • ExecutorInner: Internal shared state for task spawning
  • WorkerService: Manages worker threads that execute tasks
  • TaskArena: Memory-mapped arena for task storage
  • JoinHandle: 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 MmapExecutorArena and worker threads.
ExecutorConfig
JoinHandle
Awaitable join handle returned from Executor::spawn.
Runtime

Functions§

new_multi_threaded
new_single_threaded

Type Aliases§

DefaultBlockingExecutor
DefaultExecutor
DefaultRuntime