noreplyWait

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
})

Related commands

Get more help

Couldn't find what you were looking for?

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部