mol_mutable 0.0.720 → 0.0.722
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.test.js +7 -1
- package/node.test.js.map +1 -1
- package/package.json +1 -1
package/node.test.js
CHANGED
|
@@ -1315,7 +1315,7 @@ var $;
|
|
|
1315
1315
|
}
|
|
1316
1316
|
return this.cache;
|
|
1317
1317
|
}
|
|
1318
|
-
async
|
|
1318
|
+
async async_raw() {
|
|
1319
1319
|
while (true) {
|
|
1320
1320
|
this.fresh();
|
|
1321
1321
|
if (this.cache instanceof Error) {
|
|
@@ -1331,6 +1331,12 @@ var $;
|
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
1333
1333
|
}
|
|
1334
|
+
async() {
|
|
1335
|
+
const promise = this.async_raw();
|
|
1336
|
+
if (!promise.destructor)
|
|
1337
|
+
promise.destructor = () => this.destructor();
|
|
1338
|
+
return promise;
|
|
1339
|
+
}
|
|
1334
1340
|
step() {
|
|
1335
1341
|
return new Promise(done => {
|
|
1336
1342
|
const sub = new $mol_wire_pub_sub;
|