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

Remove OverlappedOperation#synchronous #14663

Conversation

straight-shoota
Copy link
Member

The property OverlappedOperation#synchronous indicates when an operation has completed synchronously. That means we don't need to suspend the fiber and wait for completion. The operation is already complete.
But there's actually no need for a separate signal for that. The state property already encodes this as state DONE. There's nothing else special about "synchronous" completion that would distinguish it from DONE state after asynchronous completion.
This change drops the extra ivar and thus simplifies the code a bit.

@straight-shoota straight-shoota added this to the 1.13.0 milestone Jun 4, 2024
@straight-shoota straight-shoota merged commit 5aa2160 into crystal-lang:master Jun 6, 2024
61 checks passed
@straight-shoota straight-shoota deleted the refactor/event_loop-overlapped-done branch June 6, 2024 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants