Crate bevy_async_task

Source
Expand description

Ergonomic abstractions to async programming in Bevy for all platforms.

Structs§

AsyncReceiver
A channel that catches an AsyncTask result.
AsyncTask
A wrapper type around an async future. The future may be executed asynchronously by an TaskRunner or TaskPool bevy system parameter.
Duration
A Duration type to represent a span of time, typically used for system timeouts.
TaskPool
A Bevy SystemParam to execute many similar AsyncTasks in the background simultaneously.
TaskRunner
A Bevy SystemParam to execute async tasks in the background.
TimedAsyncTask
A wrapper type around an async future with a timeout. The future may be executed asynchronously by an TimedTaskRunner or TimedTaskPool bevy system parameter.
TimedTaskPool
A Bevy SystemParam to execute many similar AsyncTasks in the background simultaneously.
TimedTaskRunner
A Bevy SystemParam to execute async tasks in the background with a timeout.
TimeoutError
A timeout occurred on a timed asyncronous task.

Functions§

pending
Never resolves to a value or becomes ready.
sleep
Sleep for a specified duration.
timeout
Execute a future or error on timeout, whichever comes first.