mol_text_distance 0.0.986 → 0.0.988
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
|
@@ -1338,7 +1338,7 @@ var $;
|
|
|
1338
1338
|
}
|
|
1339
1339
|
return this.cache;
|
|
1340
1340
|
}
|
|
1341
|
-
async
|
|
1341
|
+
async async_raw() {
|
|
1342
1342
|
while (true) {
|
|
1343
1343
|
this.fresh();
|
|
1344
1344
|
if (this.cache instanceof Error) {
|
|
@@ -1354,6 +1354,12 @@ var $;
|
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
1356
|
}
|
|
1357
|
+
async() {
|
|
1358
|
+
const promise = this.async_raw();
|
|
1359
|
+
if (!promise.destructor)
|
|
1360
|
+
promise.destructor = () => this.destructor();
|
|
1361
|
+
return promise;
|
|
1362
|
+
}
|
|
1357
1363
|
step() {
|
|
1358
1364
|
return new Promise(done => {
|
|
1359
1365
|
const sub = new $mol_wire_pub_sub;
|