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

Method _loopNotFound

src/PyEventLoop.cc:135–138  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

133
134/* static */
135PyEventLoop PyEventLoop::_loopNotFound() {
136 PyErr_SetString(PyExc_RuntimeError, "PythonMonkey cannot find a running Python event-loop to make asynchronous calls.");
137 return PyEventLoop(nullptr);
138}
139
140/* static */
141PyEventLoop PyEventLoop::_getLoopOnThread(PyThreadState *tstate) {

Callers

nothing calls this directly

Calls 1

PyEventLoopClass · 0.85

Tested by

no test coverage detected