ali-mns-sdk
Version:
The nodejs SDK for aliyun mns service
16 lines (15 loc) • 520 B
TypeScript
import { IMQ, INotifyRecvBatch } from './Interfaces';
export declare class NotifyRecv implements INotifyRecvBatch {
constructor(mq: IMQ);
notifyRecv(cb: (ex: Error, msg: any) => Promise<boolean>, waitSeconds?: number, numOfMessages?: number): void;
notifyStopP(): Promise<string>;
private notifyRecvInternal;
private deleteP;
private _mq;
private _signalSTOP;
private _evStopped;
private _emitter;
private _timeoutCount;
private _timeoutMax;
private _ga;
}