Function waitTime

  • Wait for a specified amount of time.

    Usage:

    waitTime(1000).then((time) => {
    console.log('waitTime:', time);
    });

    Output:

    waitTime: 1000
    

    Parameters

    • time: number

      The amount of time to wait, in milliseconds.

    Returns Promise<number>

    A Promise that resolves after the specified time has elapsed.