ReQL command: noreplyWait

Command syntax

conn.noreplyWait(callback)
conn.noreplyWait() → promise

Description

noreplyWait ensures that previous queries with the noreply flag have been processed by the server. Note that this guarantee only applies to queries run on the given connection.

If no callback is provided, a promise will be returned.

Example: We have previously run queries with the noreply argument set to true. Now wait until the server has processed them.

conn.noreplyWait(function(err) { ... })

Alternatively, you can use promises.

conn.noreplyWait().then(function() {
    // all queries have been processed
}).error(function(err) {
    // process error
})

© RethinkDB contributors
Licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
https://rethinkdb.com/api/javascript/noreply_wait/