Skip to content

Commit 80b8ecc

Browse files
AsyncioGetEventLoopMigration Botfacebook-github-bot
authored andcommitted
fbcode/cea/chips [A] [B]
Reviewed By: fried Differential Revision: D113028732
1 parent 2884985 commit 80b8ecc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/django_workload/srcs/proxygen_binding/event_loop_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ def get_current_loop() -> asyncio.AbstractEventLoop:
371371
Event loop for this thread
372372
"""
373373
try:
374-
loop = asyncio.get_event_loop()
374+
loop = asyncio.get_running_loop()
375375
if loop.is_closed():
376376
raise RuntimeError("Event loop is closed")
377377
return loop

0 commit comments

Comments
 (0)