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

Method createFuture

src/PyEventLoop.cc:105–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105PyEventLoop::Future PyEventLoop::createFuture() {
106 // https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.loop.create_future
107 PyObject *futureObj = PyObject_CallMethod(_loop, "create_future", NULL);
108 return PyEventLoop::Future(futureObj);
109}
110
111PyEventLoop::Future PyEventLoop::ensureFuture(PyObject *awaitable) {
112 PyObject *asyncio = PyImport_ImportModule("asyncio");

Callers 1

getPyObjectMethod · 0.80

Calls 1

FutureClass · 0.85

Tested by

no test coverage detected