Options
All
  • Public
  • Public/Protected
  • All
Menu

Module sleep

Index

References

Functions Async

References

Renames and re-exports __type

Async Functions

  • sleep(ms: number): Promise<void>
  • async sleep, release CPU and go to next action after milliseconds

    example

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

    Parameters

    • ms: number

      millisecond

    Returns Promise<void>