Skip to main content

Module lanes

Module lanes 

Source
Expand description

Which queued task runs next.

A capsule runs one task at a time. Tasks that arrive while one is running wait, and the order they wait in is decided here: by lane first, by arrival second. A lane is read off the task’s own TaskOrigin, so nothing declares a lane and nothing can be filed in one its origin does not name.

A capsule with a single source of tasks sees every task land in the same lane and come back out in arrival order. Lanes decide something only where two sources are in flight at once.

Enums§

TaskLane
Ordering classes the queue chooses between. Declared lowest to highest, so Ord is precedence.