background-process-js
Version:
A set of util tools for create background process.
10 lines (9 loc) • 479 B
TypeScript
import { Message, Provider } from "../../../providers/provider";
import { PollingStrategy } from "../polling.strategy";
export declare class ContinuousPollingStrategy implements PollingStrategy {
private readonly waitIntervalIfEmptyQueueInMilliseconds;
private readonly maxNumberOfMessagesTotal;
private messages;
constructor(waitIntervalIfEmptyQueueInMilliseconds?: number, maxNumberOfMessagesTotal?: number);
exec(provider: Provider): Promise<Message[]>;
}