Skip to main content

coroutine

Callable


  • Excalibur coroutine helper, returns a promise when complete. Coroutines run before frame update.

    Each coroutine yield is 1 excalibur frame. Coroutines get passed the elapsed time our of yield. Coroutines run internally on the excalibur clock.

    If you yield a promise it will be awaited before resumed If you yield a number it will wait that many ms before resumed


    Parameters

    Returns Promise<void>