explicitly .close() task in http.request_many()
This commit is contained in:
parent
08162f8505
commit
7478d62b77
1 changed files with 1 additions and 0 deletions
|
@ -258,6 +258,7 @@ def request_many(requests: typing.List[Request]) -> typing.Dict[str, Response]:
|
|||
task = asyncio.wait(awaits, loop=loop, timeout=5)
|
||||
loop.run_until_complete(task)
|
||||
loop.close()
|
||||
task.close()
|
||||
|
||||
return responses
|
||||
|
||||
|
|
Loading…
Reference in a new issue