• Timer resource Use it with withF or withG.

    Type Parameters

    • T = void

    Parameters

    • Optional handlerOrOpts: {
          controller?: PromiseCancellableController;
          delay?: number;
          handler?: ((signal: AbortSignal) => T | PromiseLike<T>);
          lazy?: boolean;
      } | ((signal: AbortSignal) => T | PromiseLike<T>)
    • delay: number = 0
    • lazy: boolean = false
    • Optional controller: PromiseCancellableController

    Returns ResourceAcquire<Timer<T>>

Generated using TypeDoc