Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extension is not ^C-safe #4

Open
dimaqq opened this issue Jun 30, 2017 · 0 comments
Open

extension is not ^C-safe #4

dimaqq opened this issue Jun 30, 2017 · 0 comments

Comments

@dimaqq
Copy link

dimaqq commented Jun 30, 2017

For example:

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant