Computers · Program API v1.2.0
    Preparing search index...

    Function sleep

    • Pause cooperatively; cancellation clears the timer and rejects the Promise.

      Parameters

      • ms: number

        Finite duration from 0 to 3600000 milliseconds (one hour).

      Returns Promise<void>

      Resolves after the delay; rejects for an invalid duration or cancellation.

      await terminal.sleep(700);