You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In [1]: import asyncio
In [2]: l = asyncio.Lock()
In [7]: %await_ l
# OK
In [8]: %await_ l
# waits forever, since lock is already taken, so let's break it:
^C---------------------------------------------------------------------------
KeyboardInterrupt
[backtrace omitted]
KeyboardInterrupt:
In [10]: l.release()
# OK
In [11]: %await_ l
---------------------------------------------------------------------------
RuntimeError
[backtrace omitted]
~/.pyenv/versions/3.6.1/lib/python3.6/asyncio/base_events.py in run_until_complete(self, future)
462 future.remove_done_callback(_run_until_complete_cb)
463 if not future.done():
--> 464 raise RuntimeError('Event loop stopped before Future completed.')
465
466 return future.result()
RuntimeError: Event loop stopped before Future completed.
The text was updated successfully, but these errors were encountered:
For example:
The text was updated successfully, but these errors were encountered: