bevy/crates/bevy_asset/src/server
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
..
info.rs Avoid a panic when loading labelled assets (#13506) 2024-06-05 23:04:52 +00:00
loaders.rs Instrument asset loading and processing. (#12988) 2024-04-16 12:02:11 +00:00
mod.rs Improve error handling for AssetServer::add_async (#13745) 2024-06-10 19:31:41 +02:00