• Parameters

    • duration: number

      (millisecond)

    Returns Promise<void>

    Description

    create delay using async/await

    Example

    await createAsyncDelay(2000) // wait 2 seconds