NewDash

    Function sleep

    • async sleep, release CPU and go to next action after milliseconds

      Parameters

      • ms: number

        millisecond

      Returns Promise<void>


      async function() {
      await sleep(1000)
      // after 1 seconds
      // do something other
      }
    MMNEPVFCICPMFPCPTTAAATR