MCPcopy Index your code
hub / github.com/apache/tvm / onRejected

Method onRejected

web/src/runtime.ts:1822–1825  ·  view source on GitHub ↗
(reason: any)

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 4

scalarMethod · 0.95
callbackFunction · 0.85
toStringMethod · 0.45
disposeMethod · 0.45

Tested by

no test coverage detected