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.
1 parent a6dd3f5 commit aa7c453Copy full SHA for aa7c453
scripts/gql-cli
@@ -10,10 +10,12 @@ parser = get_parser(with_examples=True)
10
args = parser.parse_args()
11
12
try:
13
- loop = asyncio.get_event_loop()
+ # Create a new asyncio event loop
14
+ loop = asyncio.new_event_loop()
15
+ asyncio.set_event_loop(loop)
16
17
# Create a gql-cli task with the supplied arguments
- main_task = asyncio.ensure_future(main(args))
18
+ main_task = asyncio.ensure_future(main(args), loop=loop)
19
20
# Add signal handlers to close gql-cli cleanly on Control-C
21
for signal in [SIGINT, SIGTERM]:
0 commit comments