blob: 6938449db07cf208711f6e18142ffeba0bfc477f [file] [edit]
>>> (indent 2)
document.onChange.listen(expectAsync((Delta delta) {
observedDeltas.add(delta);
if (++observedDeltaCount == 3) applyToNewDocument();
}, count: 3));
<<< 3.6
document.onChange.listen(expectAsync((Delta delta) {
observedDeltas.add(delta);
if (++observedDeltaCount == 3) applyToNewDocument();
}, count: 3));
>>> (indent 4)
return queryWith(fds, otype, whereClause, whereValues).toList()
.catchError((ex, st) {
_logger.warning(
"Failed loadAllWith($fields, $whereClause, $whereValues)", ex, st);
return new Future.error(ex, st);
}).then((List<Row> rows) {
;
});
<<< 3.6
return queryWith(fds, otype, whereClause, whereValues)
.toList()
.catchError((ex, st) {
_logger.warning(
"Failed loadAllWith($fields, $whereClause, $whereValues)", ex, st);
return new Future.error(ex, st);
}).then((List<Row> rows) {
;
});
>>> (indent 4)
return _coll.update({"_id": doc["_id"]}, doc, upsert: true)
.then((_) => doc);
<<< 3.6
return _coll
.update({"_id": doc["_id"]}, doc, upsert: true).then((_) => doc);