mol_tree2 1.0.890 → 1.0.892

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 CHANGED
@@ -4390,7 +4390,7 @@ var $;
4390
4390
  }
4391
4391
  return this.cache;
4392
4392
  }
4393
- async async() {
4393
+ async async_raw() {
4394
4394
  while (true) {
4395
4395
  this.fresh();
4396
4396
  if (this.cache instanceof Error) {
@@ -4406,6 +4406,12 @@ var $;
4406
4406
  }
4407
4407
  }
4408
4408
  }
4409
+ async() {
4410
+ const promise = this.async_raw();
4411
+ if (!promise.destructor)
4412
+ promise.destructor = () => this.destructor();
4413
+ return promise;
4414
+ }
4409
4415
  step() {
4410
4416
  return new Promise(done => {
4411
4417
  const sub = new $mol_wire_pub_sub;