cpsfs2.Fs2AsyncEmitter.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cps-async-connect-fs2_3 Show documentation
Show all versions of cps-async-connect-fs2_3 Show documentation
cps-async-connect: integration of dotty-cps-async with effect stacks
The newest version!
package cps.stream.fs2stream
import cps.*
import cps.stream.*
import scala.concurrent.*
given fs2EmitAbsorber[F[_],C <: CpsMonadContext[F],T](using ExecutionContext, CpsConcurrentMonad.Aux[F,C]): BaseUnfoldCpsAsyncEmitAbsorber[fs2.Stream[F,T],F,C,T] with
override type Element = T
def asSync(fs: F[fs2.Stream[F,T]]): fs2.Stream[F,T] =
fs2.Stream.force(fs)
def unfold[S](s0:S)(f:S => F[Option[(T,S)]]): fs2.Stream[F,T] =
fs2.Stream.unfoldEval[F,S,T](s0)(f)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy