Home
last modified time | relevance | path

Searched refs:asyncio (Results 1 – 3 of 3) sorted by relevance

/unit/test/python/delayed/
H A Dasgi.py1 import asyncio
25 loop = asyncio.get_event_loop()
/unit/src/python/
H A Dnxt_python_asgi.c20 static PyObject *nxt_python_asgi_get_event_loop(PyObject *asyncio,
207 nxt_python_asgi_get_event_loop(PyObject *asyncio, const char *event_loop_func) in nxt_python_asgi_get_event_loop() argument
211 event_loop = PyDict_GetItemString(PyModule_GetDict(asyncio), in nxt_python_asgi_get_event_loop()
243 PyObject *asyncio, *loop, *obj; in nxt_python_asgi_ctx_data_alloc() local
278 asyncio = PyImport_ImportModule("asyncio"); in nxt_python_asgi_ctx_data_alloc()
279 if (nxt_slow_path(asyncio == NULL)) { in nxt_python_asgi_ctx_data_alloc()
287 loop = nxt_python_asgi_get_event_loop(asyncio, event_loop_func); in nxt_python_asgi_ctx_data_alloc()
298 loop = nxt_python_asgi_get_event_loop(asyncio, "new_event_loop"); in nxt_python_asgi_ctx_data_alloc()
345 Py_DECREF(asyncio); in nxt_python_asgi_ctx_data_alloc()
356 Py_XDECREF(asyncio); in nxt_python_asgi_ctx_data_alloc()
/unit/
H A DCHANGES141 *) Bugfix: using asyncio.get_running_loop() instead of
142 asyncio.get_event_loop() when it's available to prevent errors in