hyoo_sync_client 0.0.534 → 0.0.536

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.mjs CHANGED
@@ -1447,7 +1447,7 @@ var $;
1447
1447
  }
1448
1448
  return this.cache;
1449
1449
  }
1450
- async async() {
1450
+ async async_raw() {
1451
1451
  while (true) {
1452
1452
  this.fresh();
1453
1453
  if (this.cache instanceof Error) {
@@ -1463,6 +1463,12 @@ var $;
1463
1463
  }
1464
1464
  }
1465
1465
  }
1466
+ async() {
1467
+ const promise = this.async_raw();
1468
+ if (!promise.destructor)
1469
+ promise.destructor = () => this.destructor();
1470
+ return promise;
1471
+ }
1466
1472
  step() {
1467
1473
  return new Promise(done => {
1468
1474
  const sub = new $mol_wire_pub_sub;