aa29ecc9ea062cfe3cea0dfc234bc2f84985737c.js 934 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. System.register(["cc"], function (_export, _context) {
  2. "use strict";
  3. var _cclegacy, Wait, _crd;
  4. function get_new_wait() {
  5. return new Wait();
  6. }
  7. _export("default", get_new_wait);
  8. return {
  9. setters: [function (_cc) {
  10. _cclegacy = _cc.cclegacy;
  11. }],
  12. execute: function () {
  13. _crd = true;
  14. _cclegacy._RF.push({}, "5f7efxwnidOU6yhMrPMB9m6", "Wait", undefined);
  15. Wait = class Wait {
  16. constructor() {
  17. this._resolve = null;
  18. }
  19. wait() {
  20. return new Promise(resolve => this._resolve = resolve);
  21. }
  22. resolve(value) {
  23. if (this._resolve) {
  24. this._resolve(value);
  25. this.dispose();
  26. }
  27. }
  28. dispose() {
  29. this._resolve = null;
  30. }
  31. };
  32. _cclegacy._RF.pop();
  33. _crd = false;
  34. }
  35. };
  36. });
  37. //# sourceMappingURL=aa29ecc9ea062cfe3cea0dfc234bc2f84985737c.js.map