Type Alias TimeoutSettings<TParameters>

TimeoutSettings: TimeoutCallbacks<TParameters> & { waitTime?: ITimeSpan }

Configuration for the timeout resilience middleware. Rejects if the middleware result does not complete within the specified time; it does not cancel or abort next().

IMPORT_PATH: "@daiso-tech/core/resilience"

Type Parameters

  • TParameters extends unknown[] = unknown[]

Type declaration

  • OptionalwaitTime?: ITimeSpan

    The maximum time to wait before automatically aborting the executing function.

    import { TimeSpan } from "@daiso-tech/core/time-span";

    TimeSpan.fromSeconds(2)