Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Serializes coroutine execution and owns reverse-order retirement of admitted enumerators.

API: engine
Implements: System.IDisposable
Inherits: object
Project: Inno.Core.Coroutines

public sealed class Inno.Core.Coroutines.CoroutineScheduler : System.IDisposable
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.