Synced
AssetPipeline.AcquireAsync
Section titled “AssetPipeline.AcquireAsync”
- Asynchronously acquires a canonical authoring asset by persistent identity.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Assets.Pipeline
Declaration
Section titled “Declaration”public System.Threading.Tasks.ValueTask<Inno.Assets.AssetLease<TAsset>> Inno.Assets.Pipeline.AssetPipeline.AcquireAsync<TAsset>(System.Guid persistentId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) where TAsset : Inno.Assets.AssetObjectType parameters
Section titled “Type parameters”Type parameter TAsset: Required asset contract.
Parameters
Section titled “Parameters”Parameter persistentId: Persistent asset identity.
Parameter cancellationToken: Cancellation for this caller’s asynchronous wait.
Returns
Section titled “Returns”A lease whose strong reference participates in the existing reachability sweep.