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

Make all process operators interruptible #430

Open
wants to merge 9 commits into
base: series/2.x
Choose a base branch
from

Conversation

reibitto
Copy link
Contributor

Closes #425

Methods like exitCode were interruptible but in particular the stream operators weren't interruptible. That should be fixed now.

Also Scala.js and Scala Native interruption weren't working at all. I wasn't familiar with either Scala.js and Scala Native or the implementations that were added, but I managed to get Scala.js interruption fully working. Scala Native interruption is only partially working but it's an improvement over the previous state of things. Particularly .timeout(...) isn't interrupting the process. Nothing I do works so perhaps it's Scala Native limitation currently. I'll keep an eye on it and see if a future Scala Native upgrade fixes the internal waitFor method.

As part of this, I added proper tests for interruption for each operator (not just exitCode). It's confirmed to be working.

@reibitto reibitto mentioned this pull request Aug 19, 2024
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.

Process.stdout.linesStream is not interruptible
1 participant