Defined in: packages/db/src/strategies/types.ts:86
Throttle strategy that spaces executions evenly over time
_type: "throttle";
_type: "throttle";
Defined in: packages/db/src/strategies/types.ts:8
Type discriminator for strategy identification
cleanup: () => void;
cleanup: () => void;
Defined in: packages/db/src/strategies/types.ts:23
Clean up any resources held by the strategy Should be called when the strategy is no longer needed
void
execute: <T>(fn) => void | Promise<void>;
execute: <T>(fn) => void | Promise<void>;
Defined in: packages/db/src/strategies/types.ts:15
Execute a function according to the strategy's timing rules
T extends object = Record<string, unknown>
() => Transaction<T>
The function to execute
void | Promise<void>
The result of the function execution (if applicable)
options: ThrottleStrategyOptions;
options: ThrottleStrategyOptions;
Defined in: packages/db/src/strategies/types.ts:87
Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.
Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.
