Releases: loopystudios/bevy_async_task
Releases · loopystudios/bevy_async_task
v0.10.0
0.10.0 - 2025-11-28
- This release supports Bevy 0.17.
Added
- Added
bevy_async_task::MAX_TIMEOUT - Added
bevy_async_task::DEFAULT_TIMEOUT
Changed
- Removed
bevy_async_task::Duration. Usecore::time::Durationinstead. - The default timeout for timed tasks, was changed from
u16::MAXmillis (~65 seconds) to 60 seconds. - The maximum timeout allowed is now
i32::MAX. This is now enforced with a panic.
Fixed
- A
time not implemented on this platformpanic due towasm-bindgenfeature not being included for thefutures-timercrate. You can remedy this yourself for older versions ofbevy_async_taskby includingfutures-timer = { version = "3.0.3", features = ["wasm-bindgen"] }in your Cargo.toml file.
v0.9.0
v0.8.1
0.8.1
Fixed
bevy_async_taskno longer uses the entire bevy dependency, just the relevant crates directly (e.g.bevy_ecs).
Full Changelog: v0.8.0...v0.8.1
v0.8.0
0.8.0
Added
- Exposed
timeout,sleep, andpendingutility functions. - Added
AsyncTask::sleep
Full Changelog: v0.7.0...v0.8.0
v0.7.0
0.7.0
Changed
- The
TaskErrorenum has been replaced with aTimeoutErrorstruct.
Fixed
- A panic was fixed on WASM when the timeout exceeded numerical bounds.
Full Changelog: v0.6.0...v0.7.0
v0.6.0
v0.5.0
0.5.0
Changed
- Updated to rust 2024 edition.
- Split
AsyncTaskRunnerintoTimedTaskRunnerandTaskRunner. The timed variant polls timeouts. - Split
AsyncTaskPoolintoTimedTaskPoolandTaskPool. The timed variant polls timeouts. AsyncTask::buildhas been renamed toAsyncTask::split.
Full Changelog: v0.4.1...v0.5.0
v0.4.1
v0.4.0
v0.3.0
0.3.0
Added
- Many types now implement
Debug.
Changed
- Updated to bevy 0.15.
AsyncTaskStatuswas replaced withstd::task::Poll. If you wish to check if a task runner or pool is idle, you can still do so with<AsyncTaskRunner>.is_idle()/<AsyncTaskPool>.is_idle().- Replaced
TimeoutErrorwith a non-exhaustiveTaskErrorfor future proofing.
Removed
blocking_recv()functions were removed. You should now usebevy::tasks::block_on(fut).AsyncTask.with_timeout()until further rework is done to return this functionality. Please useAsyncTask::new_with_duration(Dur, F)instead.
Fixed
- Timeouts now work correctly on wasm32.
AsyncReceivernow uses anAtomicWakerto ensure the sender is never dropped before receiving.