-
Notifications
You must be signed in to change notification settings - Fork 13
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
Process.stdout.linesStream is not interruptible #425
Comments
Yeah, that's definitely not intended. You're right that the cause is inside I'll see if I can fix this over the weekend and cut a new release. There's been a bunch of changes for Scala.js and Scala Native support since I last did anything significant on this project so it looks like I have to clean up some stuff before I can do a full release. |
@reibitto I think this constructor should be fixed or provided by zio-streams instead of reimplement a variant of |
Sorry, Scala.js and Scala Native were giving me problems but I created the PR and should merge and release soon: #430 I agree it would be nice to get zio/zio#9084 in, but I fixed the issue locally in the meantime. Actually I cancel the process explicitly because |
Hey, if I run this the program hangs for the full 3 seconds of
sleep 3
, instead of failing after 1 second by thetimeoutFail(..)
.sample output:
The issue seems to be that
zio.process.ProcessStream.stream
(called bylinesStream
) usesZStream.fromInputStreamZIO
, which in turn opens the InputStream withZIO.attemptBlockingIO
, which is not interruptible.The text was updated successfully, but these errors were encountered: