1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- System.register(["cc"], function (_export, _context) {
- "use strict";
- var _cclegacy, Wait, _crd;
- function get_new_wait() {
- return new Wait();
- }
- _export("default", get_new_wait);
- return {
- setters: [function (_cc) {
- _cclegacy = _cc.cclegacy;
- }],
- execute: function () {
- _crd = true;
- _cclegacy._RF.push({}, "5f7efxwnidOU6yhMrPMB9m6", "Wait", undefined);
- Wait = class Wait {
- constructor() {
- this._resolve = null;
- }
- wait() {
- return new Promise(resolve => this._resolve = resolve);
- }
- resolve(value) {
- if (this._resolve) {
- this._resolve(value);
- this.dispose();
- }
- }
- dispose() {
- this._resolve = null;
- }
- };
- _cclegacy._RF.pop();
- _crd = false;
- }
- };
- });
- //# sourceMappingURL=af85f68230cc2b99da9f4441e1d0c742a3f5f640.js.map
|