We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
see also python/cpython#95051
Bug report
I expect this to raise a TimeoutError:
async def amain(): with quattro.fail_after(-11): await asyncio.sleep(0) asyncio.run(amain())
Instead I have to add an extra asyncio.sleep(0) to get a TimeoutError
asyncio.sleep(0)
async def amain(): with quattro.fail_after(-11): await asyncio.sleep(0) # does not raise CancelledError await asyncio.sleep(0) # raises CancelledError asyncio.run(amain())
Your environment
here's a comparison, note that uvloop's call_later behaves like call_soon in this case: https://gist.github.com/graingert/7628f87a629d15cce88f91d6c8cbb1b6
The text was updated successfully, but these errors were encountered:
This got fixed!
Sorry, something went wrong.
No branches or pull requests
see also python/cpython#95051
Bug report
I expect this to raise a TimeoutError:
Instead I have to add an extra
asyncio.sleep(0)
to get a TimeoutErrorYour environment
here's a comparison, note that uvloop's call_later behaves like call_soon in this case:
https://gist.github.com/graingert/7628f87a629d15cce88f91d6c8cbb1b6
The text was updated successfully, but these errors were encountered: