-
Notifications
You must be signed in to change notification settings - Fork 56
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
code is never stopped #268
Comments
That's not how asyncio works, we can't cancel if you don't yield back to the event loop anywhere (e.g. with an Use |
Ah how do I abort an execution from an external library without support to async calls? I'm using the package
To force EDIT: I'm not willing to deal with rdkit source code, so I wish an external solution. |
It should work, so I'd file a bug against rdkit if it doesn't. The reasons that the timeout doesn't work are likely that rdkit isn't yielding to the event loop (which they should be if it's meant to be an async interface), or they are catching and suppressing the CancelledError. |
in the end i want to run math but end it if it takes longer than x to complete but even this doesn't even stop
and
it should stop at 0, 1, 2, 3, 4 but instead it counts all the way to 100
The text was updated successfully, but these errors were encountered: