• Create a promise that resolves after a certain number of milliseconds

    It is strongly recommended you pass the excalibur clock so delays are bound to the excalibur clock which would be unaffected by stop/pause.

    Parameters

    • milliseconds: number
    • Optional clock: Clock

    Returns Promise<void>