Lilact
    Preparing search index...

    Function timeoutPromise

    • Creates a Promise that resolves after a managed timeout.

      The returned Promise has two additional methods:

      • proceed() clears the timer and resolves the Promise.
      • cancel() clears the timer and rejects the Promise.

      Parameters

      • Optionalduration: number = 0

        Delay in milliseconds.

      • OptionaltimerSource: Object = Lilact

        Object providing timer functions.

      Returns Promise<any>

      Promise that resolves after the timeout.