Merge 1d80d1e326
into cb64a4aa8a
This commit is contained in:
commit
d675dbae09
@ -608,7 +608,7 @@ bevy_image = { path = "crates/bevy_image", version = "0.17.0-dev", default-featu
|
|||||||
bevy_gizmos = { path = "crates/bevy_gizmos", version = "0.17.0-dev", default-features = false }
|
bevy_gizmos = { path = "crates/bevy_gizmos", version = "0.17.0-dev", default-features = false }
|
||||||
# Needed to poll Task examples
|
# Needed to poll Task examples
|
||||||
futures-lite = "2.0.1"
|
futures-lite = "2.0.1"
|
||||||
async-std = "1.13"
|
async-io = "2"
|
||||||
crossbeam-channel = "0.5.0"
|
crossbeam-channel = "0.5.0"
|
||||||
argh = "0.1.12"
|
argh = "0.1.12"
|
||||||
thiserror = "2.0"
|
thiserror = "2.0"
|
||||||
|
@ -62,7 +62,7 @@ fn spawn_tasks(mut commands: Commands) {
|
|||||||
let duration = Duration::from_secs_f32(rand::thread_rng().gen_range(0.05..5.0));
|
let duration = Duration::from_secs_f32(rand::thread_rng().gen_range(0.05..5.0));
|
||||||
|
|
||||||
// Pretend this is a time-intensive function. :)
|
// Pretend this is a time-intensive function. :)
|
||||||
async_std::task::sleep(duration).await;
|
async_io::Timer::after(duration).await;
|
||||||
|
|
||||||
// Such hard work, all done!
|
// Such hard work, all done!
|
||||||
let transform = Transform::from_xyz(x as f32, y as f32, z as f32);
|
let transform = Transform::from_xyz(x as f32, y as f32, z as f32);
|
||||||
|
Loading…
Reference in New Issue
Block a user