Module task

Source
Expand description

Utilities for compute-heavy tasks which need to be run in parallel.

Structs§

ResourceHandle
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.
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§

Resource
A factory which produces a resource for use with ResourcePool.