Table of Contents

Method StartCoroutine

Namespace
Pinwheel.Vista
Assembly
Pinwheel.Vista.Runtime.dll

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

coroutine IEnumerator

The 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.

StartCoroutine(IEnumerator, Action<Exception>)

Starts a coroutine and reports exceptions from it or nested enumerators through the supplied handler.

public static CoroutineHandle StartCoroutine(IEnumerator coroutine, Action<Exception> exceptionHandler)

Parameters

coroutine IEnumerator

The enumerator to run.

exceptionHandler Action<Exception>

Called once when the coroutine or one of its nested enumerators throws. The coroutine stops after the callback.

Returns

CoroutineHandle

A Vista coroutine handle that can be passed to StopCoroutine(CoroutineHandle).