Peeking at the first element or chunk #3057
Answered
by
armanbilge
TomasMikula
asked this question in
Q&A
|
Hi folks, given a For that, I imagine an operation like def prefetchChunk[F[_], A](s: Stream[F, A]): Resource[F, Stream[F, A]] =
???where
Is this possible? |
Answered by
armanbilge
Nov 16, 2022
Replies: 1 comment 1 reply
|
Yes, I recently implemented something very close to this. |
1 reply
Answer selected by
TomasMikula
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, I recently implemented something very close to this.
https://github.com/armanbilge/calico/blob/0baef0034b982091a6b92735843ba432606104c3/calico/src/main/scala/calico/syntax.scala#L67-L76