We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
await pm.wait()
1 parent 9ff5f57 commit 73188fdCopy full SHA for 73188fd
include/PyEventLoop.hh
@@ -186,6 +186,9 @@ public:
186
PyObject *asyncio = PyImport_ImportModule("asyncio");
187
_queueIsEmpty = PyObject_CallMethod(asyncio, "Event", NULL); // _queueIsEmpty = asyncio.Event()
188
Py_DECREF(asyncio);
189
+
190
+ // The flag should initially be set as the queue is initially empty
191
+ Py_XDECREF(PyObject_CallMethod(_queueIsEmpty, "set", NULL)); // _queueIsEmpty.set()
192
};
193
~Lock() {
194
Py_DECREF(_queueIsEmpty);
0 commit comments