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

fix #164 #168

Merged
merged 3 commits into from
Jul 9, 2024
Merged

fix #164 #168

merged 3 commits into from
Jul 9, 2024

Conversation

lbialy
Copy link
Contributor

@lbialy lbialy commented Jun 29, 2024

Fork#joinEither aware whether fork finished with InterruptedException or not. Also adds sbt settings that greatly improve debugging of race conditions (because one can interrupt a forked jvm instead of killing sbt jvm).

Comment on lines 181 to 182
override def wasInterruptedWith(ie: InterruptedException): Boolean =
result.isCompletedExceptionally && (result.exceptionNow() eq ie)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be public? it seems like it has the potential to be misused given the eq check.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, we discussed that in the issue, it's package private now.

@lbialy
Copy link
Contributor Author

lbialy commented Jul 1, 2024 via email

@adamw adamw merged commit 3228cc2 into softwaremill:master Jul 9, 2024
5 checks passed
@adamw
Copy link
Member

adamw commented Jul 9, 2024

Thanks! :)

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.

3 participants