redis-smq-common
Version:
Provides essential components and utilities shared across RedisSMQ packages.
14 lines • 549 B
TypeScript
import { IRedisTransaction } from './redis-client.js';
export interface IWatchTransactionOptions {
maxAttempts?: number;
backoff?: (attemptNo: number) => number | undefined;
makeRetryExceededError?: () => Error;
onRetry?: (attemptNo: number, maxAttempts: number) => void;
onExecError?: (err: Error) => void;
onWatchError?: (err: Error) => void;
}
export interface IWatchTransactionAttemptResult {
multi: IRedisTransaction;
afterExec?: (execResult: unknown[]) => void;
}
//# sourceMappingURL=watch-transaction.d.ts.map