Skip to content

blocking and interruptible on Scala Native #4378

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

Merged
merged 6 commits into from
May 27, 2025

Conversation

djspiewak
Copy link
Member

Fixes #4331
Fixes #4374
Closes #4360

This ports interruptible and blocking to the shared JVM/Native cross-build structure. I had to split apart IOCompanion a bit more since the CompletableFuture stuff is still JVM-only. Is that implemented on SN now? I'm assuming not. The other weird caveat came from the special ClosedByInterruptException semantics on JVM and its nonexistence on Native.

@djspiewak djspiewak added this to the v3.7.0 milestone Apr 14, 2025
@djspiewak
Copy link
Member Author

Also fixes #4323

@djspiewak djspiewak linked an issue Apr 14, 2025 that may be closed by this pull request
@armanbilge
Copy link
Member

armanbilge commented Apr 14, 2025

bit more since the CompletableFuture stuff is still JVM-only. Is that implemented on SN now? I'm assuming not.

It is!

https://github.com/scala-native/scala-native/blob/f2964e8d459b571641d5cd9c9da58d41df461c2e/javalib/src/main/scala/java/util/concurrent/CompletableFuture.scala

Edit: caveat, it landed in SN 0.5.7, which we are struggling to upgrade to.

@djspiewak djspiewak merged commit 72d930b into typelevel:series/3.x May 27, 2025
36 of 38 checks passed
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.

Implement blocking on SN Implement interruptible on SN Make IOCompanion consistent between JVM + Native and JVM
3 participants