Crate bevy_tokio_tasks

Crate bevy_tokio_tasks 

Source

Re-exports§

pub use tokio;

Structs§

MainThreadContext
The context arguments which are available to main thread callbacks requested using run_on_main_thread.
TaskContext
The context arguments which are available to background tasks spawned onto the TokioTasksRuntime.
TokioTasksPlugin
The Bevy Plugin which sets up the TokioTasksRuntime Bevy resource and registers the tick_runtime_update exclusive system.
TokioTasksRuntime
The Bevy Resource which stores the Tokio Runtime and allows for spawning new background tasks.

Functions§

tick_runtime_update
The Bevy exclusive system which executes the main thread callbacks that background tasks requested using run_on_main_thread. You can control which Bevy schedule stage this system executes in by specifying a custom schedule_label value.