RSX Code Reference
    Preparing search index...

    Class Coroutine<T>

    The Coroutine class implements an asynchronous function that can be repeatedly called to continue the execution where it last called yield.

    This is similar to Component Coroutines with the main difference being that the Coroutine must be manually updated each frame by a call to continue.

    Type Parameters

    • T
    Index
    • Type Parameters

      • T

      Parameters

      • target: object
      • generator: () => Generator<T>
      • OptionalonFinalize: () => void

      Returns Coroutine<T>

    • get isFinalized(): boolean

      Determines if the courotine finished.

      Returns boolean

    • Aborts the execution and releases the function.

      Returns void

    • Continues the coroutine.

      Returns T