summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_select_engine.c
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2023-01-20 03:27:59 +0000
committerAndrew Clayton <a.clayton@nginx.com>2023-01-20 03:27:59 +0000
commit21bc8ee15fb4e7744c65d0f3b13adf17caf8c81a (patch)
treed052e168885da0e548034b06279dee0e47ef0e9e /src/nxt_select_engine.c
parent420ddd4e493fb390c52ea638b22aa00e12fd2f9a (diff)
downloadunit-21bc8ee15fb4e7744c65d0f3b13adf17caf8c81a.tar.gz
unit-21bc8ee15fb4e7744c65d0f3b13adf17caf8c81a.tar.bz2
Python: ASGI: Factor out event loop creation to its own function.
This is a preparatory patch that factors out the asyncio event loop creation code from nxt_python_asgi_ctx_data_alloc() into its own function, to facilitate being called multiple times. This a part of the work to move away from using the asyncio.get_event_loop() function due to it no longer creating event loops if there wasn't one running. See the following commit for the gory details. Reviewed-by: Alejandro Colomar <alx@nginx.com> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src/nxt_select_engine.c')
0 files changed, 0 insertions, 0 deletions