Functionscoroutinecoroutine Callablecoroutine(engine: Engine<any>, coroutineGenerator: CoroutineGenerator): Promise<void>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 resumedParametersengine: Engine<any>coroutineGenerator: CoroutineGeneratorReturns Promise<void>
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