Synced
CoroutineScheduler
Section titled “CoroutineScheduler”
- Serializes coroutine execution and owns reverse-order retirement of admitted enumerators.
Required contracts
Section titled “Required contracts”API: engine
Implements: System.IDisposable
Inherits: object
Project: Inno.Core.Coroutines
Declaration
Section titled “Declaration”public sealed class Inno.Core.Coroutines.CoroutineScheduler : System.IDisposableMembers
Section titled “Members”| Kind | Element | Description |
|---|---|---|
| Constructors | CoroutineScheduler.Constructor | Creates an empty scheduler whose lifetime is owned by the caller. |
| Methods | CoroutineScheduler.Dispose | Closes admission and disposes all active and pending enumerators. Reentrant disposal retires the executing enumerator after its callback returns. |
| Methods | CoroutineScheduler.StartCoroutine(System.Collections.IEnumerator) | Starts a coroutine. |
| Methods | CoroutineScheduler.StartCoroutine(System.Object,System.Collections.IEnumerator) | Starts a coroutine with an owner token. |
| Methods | CoroutineScheduler.StopAllCoroutines (Method) | Requests stopping all active coroutines. |
| Methods | CoroutineScheduler.StopAllCoroutines(System.Object) | Stops owned coroutines and disposes their nested enumerators in reverse order. Reentrant calls defer cleanup of an executing callback until that callback returns. |
| Methods | CoroutineScheduler.StopCoroutine | Requests stopping a coroutine by handle. |
| Methods | CoroutineScheduler.Tick | Advances coroutine execution by one frame. |