Module kani::futures

source ·
Expand description

This module contains functions to work with futures (and async/.await) in Kani.

Structs§

  • Result of spawning a task.
  • Keeps cycling through the tasks in a deterministic order

Enums§

  • Indicates to the scheduler whether it can kani::assume that the returned task is running.

Traits§

  • Trait that determines the possible sequence of tasks scheduling for a harness.

Functions§

  • A very simple executor: it polls the future in a busy loop until completion
  • Polls the given future and the tasks it may spawn until all of them complete
  • Spawns a task on the current global executor (which is set by block_on_with_spawn)
  • Suspends execution of the current future, to allow the scheduler to poll another future