Skip to content

Instantly share code, notes, and snippets.

View DougC's full-sized avatar

Doug Clinton DougC

  • Well-Factored Software Ltd.
  • Grenoble, France
  • 00:52 (UTC +02:00)
  • X @dclinton
View GitHub Profile
@ChristopherDavenport
ChristopherDavenport / StreamFirstChunk.scala
Last active July 20, 2020 08:37
Bubble Errors Up From First Segement
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 {