Method StartCoroutine
StartCoroutine(IEnumerator)
Starts a coroutine and returns a handle that can later be passed back to StopCoroutine(CoroutineHandle).
public static CoroutineHandle StartCoroutine(IEnumerator coroutine)
Parameters
coroutineIEnumeratorThe enumerator to run.
Returns
- CoroutineHandle
A Vista coroutine handle that wraps either an editor coroutine or a runtime coroutine, depending on the current execution environment.
Remarks
The backing Pinwheel.Vista.CoroutineManager instance is created lazily the first time this method is called.