Function sleep

  • Create promise that resolves in t milliseconds

    Parameters

    • t: number

    Returns Promise<void>