-
Notifications
You must be signed in to change notification settings - Fork 17
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
Any ideas about cancellation? #12
Comments
Given task memory is intrusively provided, if it never invokes the callback due to a cancellation request then how can it free the Task? Furthermore, not all tasks are inherently cancellable (especially ones that must do so asynchronously or are blocking). I think users should implement their own cancellation if they need it. Would recommend a CancellationToken pattern if so. |
Thanks. |
Could you recommend some materials, blogs, etc about intrusively memory? I've never seen/used this... |
I mean only from got about this thing only from your post =) By the way, incredible work. Amazing deep dive in thread pool |
As far as I understand, task structure should have some sort of is_canceled variable? And there should check before calling callback. What is your vision on cancelling process?
The text was updated successfully, but these errors were encountered: