mirror of
https://github.com/bevyengine/bevy
synced 2024-12-23 03:23:20 +00:00
0dfdd87248
# 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 |
||
---|---|---|
.. | ||
macros | ||
src | ||
Cargo.toml | ||
README.md |