Async store part 1

This commit is contained in:
yflory
2017-11-30 10:33:09 +01:00
parent 96cf83af34
commit 0840570fbf
20 changed files with 1394 additions and 805 deletions

View File

@@ -73,12 +73,12 @@ define([
realtime.contentUpdate(doc);
var to = window.setTimeout(function () {
var to = self.setTimeout(function () {
cb(new Error("Timeout"));
}, 5000);
Realtime.whenRealtimeSyncs(realtime, function () {
window.clearTimeout(to);
self.clearTimeout(to);
realtime.abort();
finish(Session, void 0);
});