Take

object Take
Companion:
class
class Object
trait Matchable
class Any
Take.type

Value members

Concrete methods

def chunk[A](as: Chunk[A]): Take[Nothing, A]

Creates a Take[Nothing, A] with the specified chunk.

Creates a Take[Nothing, A] with the specified chunk.

def die(t: Throwable): Take[Nothing, Nothing]

Creates a failing Take[Nothing, Nothing] with the specified throwable.

Creates a failing Take[Nothing, Nothing] with the specified throwable.

def dieMessage(msg: String): Take[Nothing, Nothing]

Creates a failing Take[Nothing, Nothing] with the specified error message.

Creates a failing Take[Nothing, Nothing] with the specified error message.

def done[E, A](exit: Exit[E, A]): Take[E, A]

Creates a Take[E, A] from Exit[E, A].

Creates a Take[E, A] from Exit[E, A].

def fail[E](e: E): Take[E, Nothing]

Creates a failing Take[E, Nothing] with the specified failure.

Creates a failing Take[E, Nothing] with the specified failure.

def failCause[E](c: Cause[E]): Take[E, Nothing]

Creates a failing Take[E, Nothing] with the specified cause.

Creates a failing Take[E, Nothing] with the specified cause.

def fromPull[R, E, A](pull: Pull[R, E, A])(implicit trace: Trace): URIO[R, Take[E, A]]

Creates effect from Pull[R, E, A] that does not fail, but succeeds with the Take[E, A]. Error from stream when pulling is converted to Take.failCause, end of stream to Take.end.

Creates effect from Pull[R, E, A] that does not fail, but succeeds with the Take[E, A]. Error from stream when pulling is converted to Take.failCause, end of stream to Take.end.

def fromZIO[R, E, A](zio: ZIO[R, E, A])(implicit trace: Trace): URIO[R, Take[E, A]]

Creates an effect from ZIO[R, E,A] that does not fail, but succeeds with the Take[E, A]. Error from stream when pulling is converted to Take.failCause. Creates a singleton chunk.

Creates an effect from ZIO[R, E,A] that does not fail, but succeeds with the Take[E, A]. Error from stream when pulling is converted to Take.failCause. Creates a singleton chunk.

def single[A](a: A): Take[Nothing, A]

Creates a Take[Nothing, A] with a singleton chunk.

Creates a Take[Nothing, A] with a singleton chunk.

Concrete fields

val end: Take[Nothing, Nothing]

End-of-stream marker

End-of-stream marker