Expand description
The bespoke single-threaded executor (design-doc §4.2/§4.3).
Port of cocotb’s event loop + Task model: a run queue drained to
exhaustion after every simulator callback (cocotb: _event_loop.py,
EventLoop.run), tasks with the same seven observable states
(cocotb: task.py, _TaskState), and drop-based cancellation (§4.6).
Structs§
- Executor
- The executor (design-doc §4.3).
!Send— it never leaves the sim thread. - Task
Handle - Public task control surface; also a Future (
handle.await== awaiting completion, as in cocotb 2.x). Port of cocotbTask(design-doc §4.3).
Enums§
Functions§
- current
- The thread’s executor. Panics if
init()has not run. - init
- Create and install a fresh executor on this thread.
- spawn
- Port of
cocotb.start_soon(mapping row 4). - spawn_
named