-
Notifications
You must be signed in to change notification settings - Fork 613
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
parEvalMap
+ Sync
=> interrupt called for Scope that cannot be interrupted
#2371
Comments
Yeah, this happens any time a stream containing fs2/core/shared/src/main/scala/fs2/Compiler.scala Lines 169 to 173 in bb69f51
With a full fs2/core/shared/src/main/scala/fs2/Compiler.scala Lines 180 to 188 in bb69f51
Conceptually, fs2/core/shared/src/main/scala/fs2/internal/Algebra.scala Lines 673 to 731 in 5d2580a
|
Thank you for the detailed explanation |
What do you think about having this in the error message? |
This one is a menace with Doobie. Sharing in case it saves anyone else some time. I couldn't find
|
This is an error I encountered while upgrading to fs2 3. Note that when replacing the
Sync
constraint withConcurrent
(and thereby probably also the inferred compiler instance), the code works as expected. AlsoparEvalMapUnordered
does not trigger the error.Edit: I tried to come up with a naive replacement in the meantime that just enqueues a bunch of
Deferred
s but was surprised to see the exact same stacktrace while using the usualfs2.Stream
combinators such asconcurrently
ormerge
, so the issue is probably more fundamental thanparEvalMap
.The text was updated successfully, but these errors were encountered: