mol_regexp 0.0.1340 → 0.0.1342

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
@@ -1580,7 +1580,7 @@ var $;
1580
1580
  }
1581
1581
  return this.cache;
1582
1582
  }
1583
- async async() {
1583
+ async async_raw() {
1584
1584
  while (true) {
1585
1585
  this.fresh();
1586
1586
  if (this.cache instanceof Error) {
@@ -1596,6 +1596,12 @@ var $;
1596
1596
  }
1597
1597
  }
1598
1598
  }
1599
+ async() {
1600
+ const promise = this.async_raw();
1601
+ if (!promise.destructor)
1602
+ promise.destructor = () => this.destructor();
1603
+ return promise;
1604
+ }
1599
1605
  step() {
1600
1606
  return new Promise(done => {
1601
1607
  const sub = new $mol_wire_pub_sub;