awaitData property
bool
awaitData
Implementation
bool get awaitData => (flags & MongoQueryMessage.OPTS_AWAIT_DATA) != 0;
If we are at the end of the data, block for a while rather than returning no data. After a timeout period, we do return as normal, only applicable for tailable cursor.
Implementation
set awaitData(bool value) => value
? flags |= MongoQueryMessage.OPTS_AWAIT_DATA
: flags &= ~(MongoQueryMessage.OPTS_AWAIT_DATA);