Expand description
This module contains functions to work with futures (and async/.await) in Kani.
Structs§
- Join
Handle - Result of spawning a task.
- Round
Robin - Keeps cycling through the tasks in a deterministic order
Enums§
- Scheduling
Assumption - Indicates to the scheduler whether it can
kani::assume
that the returned task is running.
Traits§
- Scheduling
Strategy - Trait that determines the possible sequence of tasks scheduling for a harness.
Functions§
- block_
on - A very simple executor: it polls the future in a busy loop until completion
- block_
on_ with_ spawn - Polls the given future and the tasks it may spawn until all of them complete
- spawn
- Spawns a task on the current global executor (which is set by
block_on_with_spawn
) - yield_
now - Suspends execution of the current future, to allow the scheduler to poll another future