Struct bevy_tasks::IoTaskPool [−][src]
pub struct IoTaskPool(pub TaskPool);
Expand description
A newtype for a task pool for IO-intensive work (i.e. tasks that spend very little time in a “woken” state)
Tuple Fields
0: TaskPool
Methods from Deref<Target = TaskPool>
Return the number of threads owned by the task pool
Allows spawning non-'static
futures on the thread pool. The function takes a callback,
passing a scope object into it. The scope object provided to the callback can be used
to spawn tasks. This function will await the completion of all tasks before returning.
This is similar to rayon::scope
and crossbeam::scope
Spawns a static future onto the thread pool. The returned Task is a future. It can also be cancelled and “detached” allowing it to continue running without having to be polled by the end-user.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for IoTaskPool
impl Send for IoTaskPool
impl Sync for IoTaskPool
impl Unpin for IoTaskPool
impl !UnwindSafe for IoTaskPool
Blanket Implementations
Mutably borrows from an owned value. Read more