Module dynamic_thread_spawner

Module dynamic_thread_spawner 

Source
Expand description

The API for spawning dynamic kernel threads.

If you want to run a closure on a kernel thread, check out SpawnRequestBuilder on how to start and configure tasks that run closures.

Structs§

ClosureNone
A builder type state where no closure has been provided yet.
DynamicThreadSpawner
A thread pool that immediately execute any new work sent to it and keep a maximum number of idle threads.
SpawnRequest
A fully configured spawn request.
SpawnRequestBuilder
A builder for configuring new tasks to spawn.

Traits§

ClosureKind
Denotes whether a closure has been provided. A request can not be built at all without a closure.