MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / addDoneCallback

Method addDoneCallback

src/PyEventLoop.cc:288–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288void PyEventLoop::Future::addDoneCallback(PyObject *cb) {
289 // https://docs.python.org/3.9/library/asyncio-future.html#asyncio.Future.add_done_callback
290 PyObject *ret = PyObject_CallMethod(_future, "add_done_callback", "O", cb); // returns None
291 Py_XDECREF(ret);
292}
293
294bool PyEventLoop::Future::isCancelled() {
295 // https://docs.python.org/3.9/library/asyncio-future.html#asyncio.Future.cancelled

Callers 1

toJsPromiseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected