Replies: 1 comment 4 replies
-
To apply You might also need to use withUnliftStrategy and set ConcUnlift with it if streamly utilizes MonadBaseControl in multiple threads, but you'll get appropriate error at runtime if default SeqUnlift is not enough. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
#108 was helpful for me to understand how to write effects that take or return streams, for example an effect to read a file that returns a stream of bytes.
However, now I am struggling with applying the
parEval
function toStream
s from the Streamly library. Here is the definition ofparEval
andMonadAsync
:When in plain IO it's straightforward to use
parEval
, however within a context constrained by effects (where IO may or may not be possible), I am not sure how to achieve this.Thank you
Beta Was this translation helpful? Give feedback.
All reactions