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

Method onFulfilled

web/src/runtime.ts:1818–1821  ·  view source on GitHub ↗
(rv: any)

Source from the content-addressed store, hash-verified

1816 const callback = this.detachFromCurrentScope(args[args.length - 1] as PackedFunc);
1817 const promise: Promise<any> = func(...fargs);
1818 const onFulfilled = (rv: any) => {
1819 callback(this.scalar(AsyncCallbackCode.kReturn, "int32"), rv);
1820 callback.dispose();
1821 };
1822 const onRejected = (reason: any) => {
1823 callback(this.scalar(AsyncCallbackCode.kException, "int32"), reason.toString());
1824 callback.dispose();

Callers

nothing calls this directly

Calls 3

scalarMethod · 0.95
callbackFunction · 0.85
disposeMethod · 0.45

Tested by

no test coverage detected