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

Ensure that OwnCancelSchedule flag will not be removed from wait() and withTimeout(). #519

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

cheatfate
Copy link
Collaborator

I was initially checking OwnCancelSchedule flag being set in this primitives and after test i was agreed that its needed, because otherwise its hard to keep order of execution:
wait() and withTimeout() should not be cancelled() first, before future passed as argument will not be completed. So even retFuture become cancelled it should wait until situation with future will not be resolved.

@arnetheduck arnetheduck merged commit 4ed0cd6 into master Mar 5, 2024
12 checks passed
@arnetheduck arnetheduck deleted the wait-cancellation branch March 5, 2024 16:34
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

Successfully merging this pull request may close these issues.

2 participants