db_consume: Consume a message from a message queue

View source: R/db.R

db_consumeR Documentation

Consume a message from a message queue

Description

This is the blocking version of try_consume(). Currently it just polls twice a second, and sleeps between the polls. Each poll will also trigger a crash cleanup, if there are workers running.

Usage

db_consume(db, queue, poll_interval = 500)

Arguments

queue

The queue object.


r-lib/liteq documentation built on Nov. 10, 2023, 1:43 a.m.