Variable fallbackConst

fallback: {
    cache: <T extends GeneralFunction>(runner: T, cacheSize?: number) => T;
    circuit: <T extends GeneralFunction>(
        runner: T,
        openDuration?: number,
        cacheSize?: number,
    ) => T;
    recommend: <T extends GeneralFunction>(
        runner: T,
        options?: RecommendFallbackCreatorOptions,
    ) => T;
    retry: <T extends GeneralFunction>(
        runner: T,
        maxRetryNumber?: number,
        retryAfterMSecond?: number,
    ) => T;
} = ...

fallback namespace

Type declaration

  • cache: <T extends GeneralFunction>(runner: T, cacheSize?: number) => T
  • circuit: <T extends GeneralFunction>(
        runner: T,
        openDuration?: number,
        cacheSize?: number,
    ) => T
  • recommend: <T extends GeneralFunction>(
        runner: T,
        options?: RecommendFallbackCreatorOptions,
    ) => T
  • retry: <T extends GeneralFunction>(
        runner: T,
        maxRetryNumber?: number,
        retryAfterMSecond?: number,
    ) => T

5.15.0