This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cats.effect._ | |
import cats.implicits._ | |
import fs2._ | |
object Reconstitute { | |
// Simplest method I can find at the current moment | |
def tryFetch1[F[_]: Sync, A](s: Stream[F, A]): F[Stream[F, A]] = | |
s.pull.uncons | |
.flatMap { |