UNPKG

background-process-js

Version:
10 lines (9 loc) 479 B
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[]>; }