mol_wire_lib 1.0.905 → 1.0.907
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node.deps.json +1 -1
- package/node.js +18 -12
- package/node.js.map +1 -1
- package/node.mjs +18 -12
- package/node.test.js +18 -12
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +18 -12
- package/web.js.map +1 -1
- package/web.mjs +18 -12
package/web.mjs
CHANGED
|
@@ -814,20 +814,26 @@ var $;
|
|
|
814
814
|
return this.cache;
|
|
815
815
|
}
|
|
816
816
|
async async() {
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
817
|
+
try {
|
|
818
|
+
while (true) {
|
|
819
|
+
this.fresh();
|
|
820
|
+
if (this.cache instanceof Error) {
|
|
821
|
+
$mol_fail_hidden(this.cache);
|
|
822
|
+
}
|
|
823
|
+
if (!$mol_promise_like(this.cache))
|
|
824
|
+
return this.cache;
|
|
825
|
+
await Promise.race([this.cache, this.step()]);
|
|
826
|
+
if (!$mol_promise_like(this.cache))
|
|
827
|
+
return this.cache;
|
|
828
|
+
if (this.cursor === $mol_wire_cursor.final) {
|
|
829
|
+
await new Promise(() => { });
|
|
830
|
+
}
|
|
829
831
|
}
|
|
830
832
|
}
|
|
833
|
+
catch (e) {
|
|
834
|
+
console.log(e.stack);
|
|
835
|
+
throw e;
|
|
836
|
+
}
|
|
831
837
|
}
|
|
832
838
|
step() {
|
|
833
839
|
return new Promise(done => {
|