-
Notifications
You must be signed in to change notification settings - Fork 13
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
Cancellation? #5
Comments
I would take that contribution as well! I'm not married to any particular API for this. Since the existing API is not asynchronous, my first thought would be a callback function passed to the call. This function would be called regularly and return Another option would be to provide an asynchronous version of this API and add a What were you thinking? |
I'm not sure. The first thought is fine if you're regularly polling. But I know that's not the case with POSIX So the underlying implementation has to hand out some kind of cancellation callable. But because of the synchronous nature, we need another way to return it. I suppose converting it from functional to OOP would work? Make a If you wanted to keep objects and classes out of it, you could add a |
Either way sounds fine to me. I don't have any aversion from classes and OOP. |
Sorry this has trickled down to you. Basically, for my use case, I have need to cancel sleeps on certain events so that I can recalculate sleep time.
Related issues are AstraLuma/xontrib-schedule#3 and dbader/schedule#147
I know my work with #4 has a high potential of making this challenging, but the pure-python algorithm should amenable to this, within a second.
The text was updated successfully, but these errors were encountered: