YieldTask<'r> Type
Async operation type
Can be run inside coroutine computation expressions:
coroutine {
let! assetBundle = openAssetBundleFromFile "mybundle.assetbundle"
printf $"Loaded {assetBundle.name}"
}
val printf: format: Printf.TextWriterFormat<'T> -> 'T
Instance members
Instance member | Description |
Full Usage:
this.ForEach
Parameters:
Action<'r>
-
Consumer that will receive the task's result
Returns: IEnumerator<YieldInstruction>
|
The returned IEnumerator must be yielded to Unity, otherwise the callback will never run.
ExampleUsage example within a coroutine callback:
val task: TaskBuilder
|
|