@untemps/utils - v3.1.0
    Preparing search index...

    Function standby

    • Parameters

      • timeout: number = 128

        The delay before resolving the promise (in milliseconds).

      Returns Promise<void>

      The promise to be resolved.

      import { standby } from '@untemps/utils/async/standby'

      const fn = async () => {
      console.log("Start delay")
      await standby(3000)
      console.log("End delay")
      }
      fn()