Skip to main content

CoroutineInstance

Hierarchy

  • PromiseLike<void>
    • CoroutineInstance

Index

Properties

[iterator]

[iterator]: () => Generator<number | Promise<any> | CoroutineInstance, void, number>

Type declaration

cancel

cancel: () => void

Type declaration

    • (): void
    • Returns void

done

done: Promise<void>

generator

generator: Generator<number | Promise<any> | CoroutineInstance, void, number>

start

start: () => CoroutineInstance

Type declaration

then

then: <TResult1, TResult2>(onfulfilled?: (value: void) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => PromiseLike<TResult1 | TResult2>

Type declaration

    • <TResult1, TResult2>(onfulfilled?: (value: void) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>): PromiseLike<TResult1 | TResult2>
    • Attaches callbacks for the resolution and/or rejection of the Promise.


      Type parameters

      • TResult1 = void
      • TResult2 = never

      Parameters

      • optionalonfulfilled: (value: void) => TResult1 | PromiseLike<TResult1>

        The callback to execute when the Promise is resolved.

        • optionalonrejected: (reason: any) => TResult2 | PromiseLike<TResult2>

          The callback to execute when the Promise is rejected.

          Returns PromiseLike<TResult1 | TResult2>

          A Promise for the completion of which ever callback is executed.

      Methods

      isComplete

      • isComplete(): boolean
      • Returns boolean

      isRunning

      • isRunning(): boolean
      • Returns boolean