conn.noreplyWait(callback)
conn.noreplyWait() → promise
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
})
Couldn't find what you were looking for?
Contribute: edit this page or open an issue