All Downloads are FREE. Search and download functionalities are using the official Maven repository.

colibri.Sink.scala Maven / Gradle / Ivy

The newest version!
package colibri

trait Sink[-G[_]] {
  def unsafeOnNext[A](sink: G[A])(value: A): Unit
  def unsafeOnError[A](sink: G[A])(error: Throwable): Unit
}
object Sink       {
  @inline def apply[G[_]](implicit sink: Sink[G]): Sink[G] = sink
}

trait LiftSink[+G[_]] {
  def lift[GG[_]: Sink, A](sink: GG[A]): G[A]
}
object LiftSink       {
  @inline def apply[G[_]](implicit sink: LiftSink[G]): LiftSink[G] = sink
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy