mol_plot_all 1.2.1207 → 1.2.1208

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.js CHANGED
@@ -844,7 +844,7 @@ var $;
844
844
  }
845
845
  return this.cache;
846
846
  }
847
- async async() {
847
+ async async_raw() {
848
848
  while (true) {
849
849
  this.fresh();
850
850
  if (this.cache instanceof Error) {
@@ -860,6 +860,12 @@ var $;
860
860
  }
861
861
  }
862
862
  }
863
+ async() {
864
+ const promise = this.async_raw();
865
+ if (!promise.destructor)
866
+ promise.destructor = () => this.destructor();
867
+ return promise;
868
+ }
863
869
  step() {
864
870
  return new Promise(done => {
865
871
  const sub = new $mol_wire_pub_sub;