730c389a175a60ab5c6b61220a3c40ea4be170c0eeef40061b7291b38bdafa63.json 1.9 KB

1
  1. {"ast":null,"code":"/**\n * Wrapper class for promise with external resolve and reject.\n */\nexport class Deferred {\n /**\n * The resolve method of the promise associated with this deferred object.\n */\n get resolve() {\n return this._resolve;\n }\n /**\n * The reject method of the promise associated with this deferred object.\n */\n get reject() {\n return this._reject;\n }\n /**\n * Constructor for this deferred object.\n */\n constructor() {\n this.promise = new Promise((resolve, reject) => {\n this._resolve = resolve;\n this._reject = reject;\n });\n }\n}","map":{"version":3,"names":["Deferred","resolve","_resolve","reject","_reject","constructor","promise","Promise"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Misc/deferred.js"],"sourcesContent":["/**\n * Wrapper class for promise with external resolve and reject.\n */\nexport class Deferred {\n /**\n * The resolve method of the promise associated with this deferred object.\n */\n get resolve() {\n return this._resolve;\n }\n /**\n * The reject method of the promise associated with this deferred object.\n */\n get reject() {\n return this._reject;\n }\n /**\n * Constructor for this deferred object.\n */\n constructor() {\n this.promise = new Promise((resolve, reject) => {\n this._resolve = resolve;\n this._reject = reject;\n });\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAO,MAAMA,QAAQ,CAAC;EAClB;AACJ;AACA;EACI,IAAIC,OAAOA,CAAA,EAAG;IACV,OAAO,IAAI,CAACC,QAAQ;EACxB;EACA;AACJ;AACA;EACI,IAAIC,MAAMA,CAAA,EAAG;IACT,OAAO,IAAI,CAACC,OAAO;EACvB;EACA;AACJ;AACA;EACIC,WAAWA,CAAA,EAAG;IACV,IAAI,CAACC,OAAO,GAAG,IAAIC,OAAO,CAAC,CAACN,OAAO,EAAEE,MAAM,KAAK;MAC5C,IAAI,CAACD,QAAQ,GAAGD,OAAO;MACvB,IAAI,CAACG,OAAO,GAAGD,MAAM;IACzB,CAAC,CAAC;EACN;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}