map/parJoin
#2225
|
I've got this stream where we unzip files from a incoming Stream: This works archive
//unzip
.through(Archive.unzip(blocker))
.parEvalMapUnordered(5) { entry =>
entry.body.through(store.put(Path(s"import/$id/${entry.name}"))).compile.drain.as(entry.name)
}
.compile
.toListWhile this doesn't archive
//unzip
.through(Archive.unzip(blocker))
.map(entry => entry.body.through(store.put(Path(s"import/$id/${entry.name}"))).as(entry.name))
.parJoin(5)
.compile
.toListWith the latter, it uploads the file to the blob store, but it doesn't yield the |
Answered by
mpilquist
Jan 25, 2021
Replies: 2 comments 2 replies
|
Check the implementation of |
0 replies
Answer selected by
Fristi
|
Ah that's correct :) My guess that |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check the implementation of
store.put-- I'm guessing it doesn't emit anything. E.g.,def put(...): Stream[F, Unit] = Stream.eval_(takeAction(...))emits no output.