drainConnection: Drain RethinkDB connection

Description Usage Arguments Details

View source: R/wire.R

Description

Drains a given RethinkDB connection, i.e. pull query responses and both call their associated callbacks (for async queries) and/or filling sync cursor local cache. Draining ends when all async queries end; the function blocks for the entire time this is happening.

Usage

1

Arguments

x

Connection to drain.

Details

The async query callback will only fire during drainConnection or (opportunistically) cursorNext; consequently this function must be run to guarantee that installed callbacks will have a chance to fire.


mbq/rethinker documentation built on May 22, 2019, 12:57 p.m.