Type Alias HedgingSettings<TParameters, TReturn, TContext>

HedgingSettings: HedgingCallbacks<TParameters, TContext> & {
    fallbacks: OneOrMore<
        Fallback<TParameters, TReturn>
        | NamedFallback<TParameters, TReturn>,
    >;
    waitTime?: TimeSpan;
}

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

Type Parameters

Type declaration

  • fallbacks: OneOrMore<Fallback<TParameters, TReturn> | NamedFallback<TParameters, TReturn>>

    The fallback functions that run in case the primary function fails.

  • OptionalwaitTime?: TimeSpan

    The maximum time to wait before automatically aborting the executing primary function or fallback functions.

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

    TimeSpan.fromSeconds(2)