Crate bevy_async_task

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.
AsyncStream
An async stream task that yields multiple items.
AsyncStreamReceiver
A channel that receives multiple items from an async stream.
AsyncTask
A wrapper type around an async future. The future may be executed asynchronously by an TaskRunner or TaskPool bevy system parameter.
TaskPool
A Bevy SystemParam to execute many similar AsyncTasks in the background simultaneously.
TaskRunner
A Bevy SystemParam to execute async tasks in the background.
TaskStream
A Bevy SystemParam to execute async streams 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.

Constants§

DEFAULT_TIMEOUT
A good default timeout. Values over i32::MAX will cause panics on web.
MAX_TIMEOUT
The maximum timeout allowed. Anything above this will cause a panic on web.

Traits§

ConditionalSendStream
The missing conditional send stream trait. see: https://github.com/bevyengine/bevy/issues/22093

Functions§

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