Sink

@deprecated("Use Pipe instead", "1.0.2") object Sink

Companion for Sink.

Companion for Sink.

Deprecated
class Object
trait Matchable
class Any

Value members

Deprecated methods

@deprecated("Use stream.evalMap(f) instead", "1.0.2")
def apply[F[_], I](f: I => F[Unit]): F => I

Lifts a function I => F[Unit] to Sink[F,I].

Lifts a function I => F[Unit] to Sink[F,I].

Deprecated
@deprecated("Use stream.observeEither(left, right)", "1.0.2")
def either[F[_], L, R](left: F => L, right: F => R)(`evidence$5`: Concurrent[F]): F => Either[L, R]

Sink that routes each element to one of two sinks. Left values get sent to the left sink, and likewise for Right

Sink that routes each element to one of two sinks. Left values get sent to the left sink, and likewise for Right

If either of left or right fails, then resulting stream will fail. If either halts the evaluation will halt too.

Deprecated
@deprecated("Use stream.lines(out) instead", "1.0.2")
def lines[F[_]](out: PrintStream)(F: Sync[F]): F => String

Sink that prints each string from the source to the supplied PrintStream.

Sink that prints each string from the source to the supplied PrintStream.

Deprecated
@deprecated("Use stream.showLines(out) instead", "1.0.2")
def showLines[F[_], I](out: PrintStream)(`evidence$1`: Sync[F], `evidence$2`: Show[I]): F => I

Sink that prints each element from the source to the supplied PrintStream using the Show instance for the input type.

Sink that prints each element from the source to the supplied PrintStream using the Show instance for the input type.

Deprecated
@deprecated("Use stream.showLinesStdOut instead", "1.0.2")
def showLinesStdOut[F[_], I](`evidence$3`: Sync[F], `evidence$4`: Show[I]): F => I

Sink that prints each element from the source to the standard out using the Show instance for the input type.

Sink that prints each element from the source to the standard out using the Show instance for the input type.

Deprecated