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

Method setException

src/PyEventLoop.cc:282–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282void PyEventLoop::Future::setException(PyObject *exception) {
283 // https://docs.python.org/3/library/asyncio-future.html#asyncio.Future.set_exception
284 PyObject *ret = PyObject_CallMethod(_future, "set_exception", "O", exception); // returns None
285 Py_XDECREF(ret);
286}
287
288void PyEventLoop::Future::addDoneCallback(PyObject *cb) {
289 // https://docs.python.org/3.9/library/asyncio-future.html#asyncio.Future.add_done_callback

Callers 1

onResolvedCbFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected