mol_key 0.0.1061 → 0.0.1062
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
|
@@ -2175,7 +2175,7 @@ var $;
|
|
|
2175
2175
|
}
|
|
2176
2176
|
return this.cache;
|
|
2177
2177
|
}
|
|
2178
|
-
async
|
|
2178
|
+
async async_raw() {
|
|
2179
2179
|
while (true) {
|
|
2180
2180
|
this.fresh();
|
|
2181
2181
|
if (this.cache instanceof Error) {
|
|
@@ -2191,6 +2191,12 @@ var $;
|
|
|
2191
2191
|
}
|
|
2192
2192
|
}
|
|
2193
2193
|
}
|
|
2194
|
+
async() {
|
|
2195
|
+
const promise = this.async_raw();
|
|
2196
|
+
if (!promise.destructor)
|
|
2197
|
+
promise.destructor = () => this.destructor();
|
|
2198
|
+
return promise;
|
|
2199
|
+
}
|
|
2194
2200
|
step() {
|
|
2195
2201
|
return new Promise(done => {
|
|
2196
2202
|
const sub = new $mol_wire_pub_sub;
|