Thanks to visit codestin.com Credit goes to github.com
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 7579093 commit b8064a8Copy full SHA for b8064a8
1 file changed
Doc/library/asyncio-dev.rst
@@ -212,6 +212,7 @@ Example of unhandled exception::
212
loop = asyncio.get_event_loop()
213
asyncio.async(bug())
214
loop.run_forever()
215
+ loop.close()
216
217
Output::
218
@@ -258,6 +259,7 @@ coroutine in another coroutine and use classic try/except::
258
259
260
asyncio.async(handle_exception())
261
262
263
264
Another option is to use the :meth:`BaseEventLoop.run_until_complete`
265
function::
0 commit comments