DocumentRunT1, T2(FuncT1, T2, IEnumerable, T1, T2) Method |
Schedule a coroutine to be called in the current time-step.
Namespace: Demo3D.VisualsAssembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntaxpublic ITask Run<T1, T2>(
Func<T1, T2, IEnumerable> coroutine,
T1 arg1,
T2 arg2
)
Parameters
- coroutine FuncT1, T2, IEnumerable
- Coroutine to be invoked.
- arg1 T1
- First argument to coroutine.
- arg2 T2
- Second argument to coroutine.
Type Parameters
- T1
- Type of first argument to coroutine.
- T2
- Type of second argument to coroutine.
Return Value
ITaskAn
ITask representing the scheduled coroutine.
See Also