mol_plot_all 1.2.1207 → 1.2.1209

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/web.js CHANGED
@@ -829,7 +829,7 @@ var $;
829
829
  }
830
830
  return this.cache;
831
831
  }
832
- async async() {
832
+ async async_raw() {
833
833
  while (true) {
834
834
  this.fresh();
835
835
  if (this.cache instanceof Error) {
@@ -845,6 +845,12 @@ var $;
845
845
  }
846
846
  }
847
847
  }
848
+ async() {
849
+ const promise = this.async_raw();
850
+ if (!promise.destructor)
851
+ promise.destructor = () => this.destructor();
852
+ return promise;
853
+ }
848
854
  step() {
849
855
  return new Promise(done => {
850
856
  const sub = new $mol_wire_pub_sub;