io.finch.LiftReader.scala Maven / Gradle / Ivy
package io.finch
import com.twitter.io.{Buf, Reader}
/** Create stream `S[F, A]` from [[com.twitter.io.Reader]]. */
trait LiftReader[S[_[_], _], F[_]] {
final def apply(reader: Reader[Buf]): S[F, Buf] = apply(reader, identity)
def apply[A](reader: Reader[Buf], process: Buf => A): S[F, A]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy