bevy/crates/bevy_asset
Joseph 1ae616fef1
Improve error handling for AssetServer::add_async (#13745)
# Objective

The method `AssetServer::add_async` (added in
https://github.com/bevyengine/bevy/pull/13700) requires a future that
returns an `AssetLoadError` error, which was a bit of an oversight on my
part, as that type of error only really makes sense in the context of
bevy's own asset loader -- returning it from user-defined futures isn't
very useful.

## Solution

Allow passing custom error types to `add_async`, which get cast into a
trait object matching the form of `AssetLoader::load`. If merged before
the next release this will not be a breaking change
2024-06-10 19:31:41 +02:00
..
macros Release Candidate 0.14.0-rc.2 2024-06-06 23:56:56 +02:00
src Improve error handling for AssetServer::add_async (#13745) 2024-06-10 19:31:41 +02:00
Cargo.toml Release Candidate 0.14.0-rc.2 2024-06-06 23:56:56 +02:00
README.md Add README.md to all crates (#13184) 2024-05-02 18:56:00 +00:00

Bevy Asset

License Crates.io Downloads Docs Discord