(reason: any)
| 1820 | callback.dispose(); |
| 1821 | }; |
| 1822 | const onRejected = (reason: any) => { |
| 1823 | callback(this.scalar(AsyncCallbackCode.kException, "int32"), reason.toString()); |
| 1824 | callback.dispose(); |
| 1825 | }; |
| 1826 | promise.then(onFulfilled, onRejected); |
| 1827 | }; |
| 1828 | this.registerFunc("__async." + name, asyncVariant, override); |