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

Method setResult

src/PyEventLoop.cc:276–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276void PyEventLoop::Future::setResult(PyObject *result) {
277 // https://docs.python.org/3/library/asyncio-future.html#asyncio.Future.set_result
278 PyObject *ret = PyObject_CallMethod(_future, "set_result", "O", result); // returns None
279 Py_XDECREF(ret);
280}
281
282void PyEventLoop::Future::setException(PyObject *exception) {
283 // https://docs.python.org/3/library/asyncio-future.html#asyncio.Future.set_exception

Callers 1

onResolvedCbFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected