Take

zio.stream.Take
See theTake companion class
object Take

Attributes

Companion
class
Source
Take.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Take.type

Members list

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.

Attributes

Source
Take.scala
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.

Attributes

Source
Take.scala
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.

Attributes

Source
Take.scala
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].

Attributes

Source
Take.scala
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.

Attributes

Source
Take.scala
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.

Attributes

Source
Take.scala
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.

Attributes

Source
Take.scala
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.

Attributes

Source
Take.scala
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.

Attributes

Source
Take.scala

Concrete fields

val end: Take[Nothing, Nothing]

End-of-stream marker

End-of-stream marker

Attributes

Source
Take.scala