Module prelude

Source
Expand description

The tasks prelude.

This includes the most common types in this crate, re-exported for your convenience.

Structs§

AsyncComputeTaskPool
A newtype for a task pool for CPU-intensive work that may span across multiple frames
ComputeTaskPool
A newtype for a task pool for CPU-intensive work that must be completed to deliver the next frame
IoTaskPool
A newtype for a task pool for IO-intensive work (i.e. tasks that spend very little time in a “woken” state)

Traits§

ParallelIterator
ParallelIterator closely emulates the std::iter::Iterator interface. However, it uses bevy_task to compute batches in parallel.
ParallelSlice
Provides functions for mapping read-only slices across a provided TaskPool.
ParallelSliceMut
Provides functions for mapping mutable slices across a provided TaskPool.

Functions§

block_onstd
Blocks the current thread on a future.