Module async_asset

Source

Structs§

AssetSubscriptions
Manages interest in assets. Maintains a tokio::sync::watch::Sender for each asset handle a client has expressed interest in. AssetSubscriptions::subscribe_to is used to express interest in the load state for a given asset.
LoadStateStream

Traits§

AsyncAssetTaskExt

Functions§

notify_asset_events
Notifies interested parties of changes to asset load states. Iterates asset handles registered in AssetSubscriptions and checks their load state, emitting an update to all subscribers if the state has changed.