mol_data_all 1.1.1288 → 1.1.1289

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
@@ -1776,7 +1776,7 @@ var $;
1776
1776
  }
1777
1777
  return this.cache;
1778
1778
  }
1779
- async async() {
1779
+ async async_raw() {
1780
1780
  while (true) {
1781
1781
  this.fresh();
1782
1782
  if (this.cache instanceof Error) {
@@ -1792,6 +1792,12 @@ var $;
1792
1792
  }
1793
1793
  }
1794
1794
  }
1795
+ async() {
1796
+ const promise = this.async_raw();
1797
+ if (!promise.destructor)
1798
+ promise.destructor = () => this.destructor();
1799
+ return promise;
1800
+ }
1795
1801
  step() {
1796
1802
  return new Promise(done => {
1797
1803
  const sub = new $mol_wire_pub_sub;