All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist-es.defaultRetryToken.js Maven / Gradle / Ivy

import { MAXIMUM_RETRY_DELAY } from "./constants";
export const createDefaultRetryToken = ({ retryDelay, retryCount, retryCost, }) => {
    const getRetryCount = () => retryCount;
    const getRetryDelay = () => Math.min(MAXIMUM_RETRY_DELAY, retryDelay);
    const getRetryCost = () => retryCost;
    return {
        getRetryCount,
        getRetryDelay,
        getRetryCost,
    };
};




© 2015 - 2025 Weber Informatics LLC | Privacy Policy