Synced
Assets.AcquireAsync
Section titled “Assets.AcquireAsync”
- Acquires a canonical asset and explicitly retains it until the returned lease is disposed.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Assets
Scope: Runtime
Declaration
Section titled “Declaration”public static System.Threading.Tasks.ValueTask<InnoEngine.Assets.AssetLease<TAsset>> InnoEngine.Assets.Assets.AcquireAsync<TAsset>(InnoEngine.Assets.AssetPath path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) where TAsset : InnoEngine.Assets.AssetObjectType parameters
Section titled “Type parameters”Type parameter TAsset: Required asset contract.
Parameters
Section titled “Parameters”Parameter path: Mount-qualified logical asset path.
Parameter cancellationToken: Cancellation for this caller’s asynchronous wait.
Returns
Section titled “Returns”A lease that owns residency for the canonical asset.