MessageQueue.listen(handler: (message: any) => Promise<void> | void,options?: MessageQueueListenOptions,): Promise<void>
Listens for messages in the queue.
handler: (message: any) => Promise<void> | void
The handler for messages in the queue.
optional
options: MessageQueueListenOptions
Additional options for listening to the message queue.
Promise<void>
A promise that resolves when the listening is done. It never rejects, and is resolved when the signal is aborted. If no signal is provided, it never resolves.