Module branchless::core::task
source · [−]Expand description
Utilities for compute-heavy tasks which need to be run in parallel.
Structs
A handle to an instance of a resource created by Resource::try_create
.
When this value is dropped, the underlying resource returns to the owning
ResourcePool
.
An unbounded pool of on-demand generated resources. This is useful when distributing work across threads which needs access to an expensive-to-build context.
Traits
A factory which produces a resource for use with ResourcePool
.