MCPcopy Index your code
hub / github.com/AI45Lab/Code / cancel

Method cancel

sdk/node/src/lib.rs:4884–4887  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

4882 /// @returns `true` if an operation was cancelled, `false` if no operation was in progress
4883 #[napi]
4884 pub fn cancel(&self) -> bool {
4885 let session = self.inner.clone();
4886 get_runtime().block_on(session.cancel())
4887 }
4888
4889 /// Close the session and cancel any active operation.
4890 ///

Callers 2

stopMethod · 0.45

Calls 3

block_onMethod · 0.80
get_runtimeFunction · 0.70
cloneMethod · 0.45

Tested by

no test coverage detected