mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
1d950e6195
# Objective Supercedes #12881 . Added a simple implementation that allows the user to react to multiple asset loads both synchronously and asynchronously. ## Solution Added `load_acquire`, that holds an item and drops it when loading is finished or failed. When used synchronously Hold an `Arc<()>`, check for `Arc::strong_count() == 1` when all loading completed. When used asynchronously Hold a `SemaphoreGuard`, await on `acquire_all` for completion. This implementation has more freedom than the original in my opinion. --------- Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com> Co-authored-by: Zachary Harrold <zac@harrold.com.au> |
||
---|---|---|
.. | ||
files | ||
processing | ||
asset_decompression.rs | ||
asset_loading.rs | ||
asset_settings.rs | ||
custom_asset.rs | ||
custom_asset_reader.rs | ||
embedded_asset.rs | ||
extra_source.rs | ||
hot_asset_reloading.rs | ||
multi_asset_sync.rs | ||
repeated_texture.rs |