MCPcopy Create free account
hub / github.com/YuminosukeSato/ironkernel / complete

Method complete

src/python/py_callable.rs:45–53  ·  view source on GitHub ↗
(&self, value: Py<PyAny>)

Source from the content-addressed store, hash-verified

43 }
44
45 pub(crate) fn complete(&self, value: Py<PyAny>) {
46 let (mutex, condvar) = &*self.inner;
47 let mut state = mutex.lock().unwrap();
48 if state.is_terminal() {
49 return;
50 }
51 *state = CallableState::Completed(value);
52 condvar.notify_all();
53 }
54
55 pub(crate) fn fail(&self, message: String) {
56 let (mutex, condvar) = &*self.inner;

Calls 1

is_terminalMethod · 0.45