Task

object Task
class Object
trait Matchable
class Any
Task.type

Value members

Concrete methods

def absolve[A](v: Task[Either[Throwable, A]]): Task[A]
See also:
def apply[A](a: => A): Task[A]
See also:
def bracket[A](acquire: Task[A]): BracketAcquire[Any, Throwable, A]
See also:

See bracket zio.ZIO

def bracket[A, B](acquire: Task[A], release: A => UIO[Any], use: A => Task[B]): Task[B]
See also:

See bracket zio.ZIO

def bracketExit[A](acquire: Task[A]): BracketExitAcquire[Any, Throwable, A]
See also:

See bracketExit zio.ZIO

def bracketExit[A, B](acquire: Task[A], release: (A, Exit[Throwable, B]) => UIO[Any], use: A => Task[B]): Task[B]
See also:

See bracketExit zio.ZIO

def checkTraced[A](f: TracingStatus => Task[A]): Task[A]
See also:
def collect[A, B, Collection <: (Iterable)](in: Collection[A])(f: A => IO[Option[Throwable], B])(implicit bf: BuildFrom[Collection[A], B, Collection[B]]): Task[Collection[B]]
See also:
def collectAll[A, Collection <: (Iterable)](in: Collection[Task[A]])(implicit bf: BuildFrom[Collection[Task[A]], A, Collection[A]]): Task[Collection[A]]
See also:
def collectAll[A](in: Set[Task[A]]): Task[Set[A]]
See also:
def collectAll[A : ClassTag](in: Array[Task[A]]): Task[Array[A]]
See also:
def collectAll[A](in: Option[Task[A]]): Task[Option[A]]
See also:
def collectAllPar[A, Collection <: (Iterable)](as: Collection[Task[A]])(implicit bf: BuildFrom[Collection[Task[A]], A, Collection[A]]): Task[Collection[A]]
See also:
def collectAllPar[A](as: Set[Task[A]]): Task[Set[A]]
See also:
def collectAllPar[A : ClassTag](as: Array[Task[A]]): Task[Array[A]]
See also:
def collectAllParN[A, Collection <: (Iterable)](n: Int)(as: Collection[Task[A]])(implicit bf: BuildFrom[Collection[Task[A]], A, Collection[A]]): Task[Collection[A]]
def collectAllParN_[A](n: Int)(as: Iterable[Task[A]]): Task[Unit]
See also:
def collectAllSuccesses[A, Collection <: (Iterable)](in: Collection[Task[A]])(implicit bf: BuildFrom[Collection[Task[A]], A, Collection[A]]): UIO[Collection[A]]
def collectAllSuccessesPar[A, Collection <: (Iterable)](as: Collection[Task[A]])(implicit bf: BuildFrom[Collection[Task[A]], A, Collection[A]]): UIO[Collection[A]]
def collectAllSuccessesParN[A, Collection <: (Iterable)](n: Int)(as: Collection[Task[A]])(implicit bf: BuildFrom[Collection[Task[A]], A, Collection[A]]): UIO[Collection[A]]
def collectAllWith[A, B, Collection <: (Iterable)](as: Collection[Task[A]])(f: PartialFunction[A, B])(implicit bf: BuildFrom[Collection[Task[A]], B, Collection[B]]): Task[Collection[B]]
def collectAllWithPar[A, B, Collection <: (Iterable)](as: Collection[Task[A]])(f: PartialFunction[A, B])(implicit bf: BuildFrom[Collection[Task[A]], B, Collection[B]]): Task[Collection[B]]
def collectAllWithParN[A, B, Collection <: (Iterable)](n: Int)(as: Collection[Task[A]])(f: PartialFunction[A, B])(implicit bf: BuildFrom[Collection[Task[A]], B, Collection[B]]): Task[Collection[B]]
def collectAll_[A](in: Iterable[Task[A]]): Task[Unit]
See also:
def collectFirst[A, B](as: Iterable[A])(f: A => Task[Option[B]]): Task[Option[B]]
See also:
def collectPar[A, B, Collection <: (Iterable)](in: Collection[A])(f: A => IO[Option[Throwable], B])(implicit bf: BuildFrom[Collection[A], B, Collection[B]]): Task[Collection[B]]
See also:
def collectParN[A, B, Collection <: (Iterable)](n: Int)(in: Collection[A])(f: A => IO[Option[Throwable], B])(implicit bf: BuildFrom[Collection[A], B, Collection[B]]): Task[Collection[B]]
See also:
def cond[A](predicate: Boolean, result: => A, error: => Throwable): Task[A]
See also:
def debug(value: Any): UIO[Unit]
See also:
def descriptorWith[A](f: Descriptor => Task[A]): Task[A]
def die(t: => Throwable): UIO[Nothing]
See also:
def dieMessage(message: => String): UIO[Nothing]
See also:
def done[A](r: => Exit[Throwable, A]): Task[A]
See also:
def effect[A](effect: => A): Task[A]
See also:
def effectAsync[A](register: Task[A] => Unit => Any, blockingOn: List[Id]): Task[A]
See also:
def effectAsyncInterrupt[A](register: Task[A] => Unit => Either[Canceler[Any], Task[A]], blockingOn: List[Id]): Task[A]
def effectAsyncM[A](register: Task[A] => Unit => Task[Any]): Task[A]
See also:
def effectAsyncMaybe[A](register: Task[A] => Unit => Option[Task[A]], blockingOn: List[Id]): Task[A]
def effectSuspend[A](task: => Task[A]): Task[A]
See also:
def effectSuspendTotal[A](task: => Task[A]): Task[A]
def effectSuspendWith[A](p: (Platform, Id) => Task[A]): Task[A]
def effectTotal[A](effect: => A): UIO[A]
See also:
def exists[A](as: Iterable[A])(f: A => Task[Boolean]): Task[Boolean]
See also:
def fail(error: => Throwable): Task[Nothing]
See also:
def filter[A, Collection <: (Iterable)](as: Collection[A])(f: A => Task[Boolean])(implicit bf: BuildFrom[Collection[A], A, Collection[A]]): Task[Collection[A]]
See also:

[[zio.ZIO.filter[R,E,A,Collection*]]

def filter[A](as: Set[A])(f: A => Task[Boolean]): Task[Set[A]]
See also:
def filterNot[A, Collection <: (Iterable)](as: Collection[A])(f: A => Task[Boolean])(implicit bf: BuildFrom[Collection[A], A, Collection[A]]): Task[Collection[A]]
See also:

[[zio.ZIO.filterNot[R,E,A,Collection*]]

def filterNot[A](as: Set[A])(f: A => Task[Boolean]): Task[Set[A]]
See also:
def filterNotPar[A, Collection <: (Iterable)](as: Collection[A])(f: A => Task[Boolean])(implicit bf: BuildFrom[Collection[A], A, Collection[A]]): Task[Collection[A]]
See also:

[[zio.ZIO.filterNotPar[R,E,A,Collection*]]

def filterNotPar[A](as: Set[A])(f: A => Task[Boolean]): Task[Set[A]]
def filterPar[A, Collection <: (Iterable)](as: Collection[A])(f: A => Task[Boolean])(implicit bf: BuildFrom[Collection[A], A, Collection[A]]): Task[Collection[A]]
See also:

[[zio.ZIO.filterPar[R,E,A,Collection*]]

def filterPar[A](as: Set[A])(f: A => Task[Boolean]): Task[Set[A]]
See also:
def firstSuccessOf[A](task: Task[A], rest: Iterable[Task[A]]): Task[A]
def flatten[A](task: Task[Task[A]]): Task[A]
See also:
def foldLeft[S, A](in: Iterable[A])(zero: S)(f: (S, A) => Task[S]): Task[S]
See also:
def foldRight[S, A](in: Iterable[A])(zero: S)(f: (A, S) => Task[S]): Task[S]
See also:
def forall[A](as: Iterable[A])(f: A => Task[Boolean]): Task[Boolean]
See also:
def foreach[A, B, Collection <: (Iterable)](in: Collection[A])(f: A => Task[B])(implicit bf: BuildFrom[Collection[A], B, Collection[B]]): Task[Collection[B]]
See also:
def foreach[A, B](in: Set[A])(f: A => Task[B]): Task[Set[B]]
See also:
def foreach[A, B : ClassTag](in: Array[A])(f: A => Task[B]): Task[Array[B]]
See also:
def foreach[Key, Key2, Value, Value2](map: Map[Key, Value])(f: (Key, Value) => Task[(Key2, Value2)]): Task[Map[Key2, Value2]]
See also:
def foreach[A, B](in: Option[A])(f: A => Task[B]): Task[Option[B]]
See also:
def foreach[A, B](in: NonEmptyChunk[A])(f: A => Task[B]): Task[NonEmptyChunk[B]]
See also:
final def foreachExec[A, B, Collection <: (Iterable)](as: Collection[A])(exec: ExecutionStrategy)(f: A => Task[B])(implicit bf: BuildFrom[Collection[A], B, Collection[B]]): Task[Collection[B]]
See also:
def foreachPar[A, B, Collection <: (Iterable)](as: Collection[A])(fn: A => Task[B])(implicit bf: BuildFrom[Collection[A], B, Collection[B]]): Task[Collection[B]]
See also:
def foreachPar[A, B](as: Set[A])(fn: A => Task[B]): Task[Set[B]]
See also:
def foreachPar[A, B : ClassTag](as: Array[A])(fn: A => Task[B]): Task[Array[B]]
See also:
def foreachPar[Key, Key2, Value, Value2](map: Map[Key, Value])(f: (Key, Value) => Task[(Key2, Value2)]): Task[Map[Key2, Value2]]
See also:
def foreachPar[A, B](as: NonEmptyChunk[A])(fn: A => Task[B]): Task[NonEmptyChunk[B]]
See also:
def foreachParN[A, B, Collection <: (Iterable)](n: Int)(as: Collection[A])(fn: A => Task[B])(implicit bf: BuildFrom[Collection[A], B, Collection[B]]): Task[Collection[B]]
See also:
def foreachParN_[A, B](n: Int)(as: Iterable[A])(f: A => Task[Any]): Task[Unit]
See also:
def foreachPar_[A, B](as: Iterable[A])(f: A => Task[Any]): Task[Unit]
See also:
def foreach_[A](as: Iterable[A])(f: A => Task[Any]): Task[Unit]
See also:
def forkAll[A, Collection <: (Iterable)](as: Collection[Task[A]])(implicit bf: BuildFrom[Collection[Task[A]], A, Collection[A]]): UIO[Fiber[Throwable, Collection[A]]]
See also:
def forkAll_[A](as: Iterable[Task[A]]): UIO[Unit]
See also:
def fromEither[A](v: => Either[Throwable, A]): Task[A]
See also:
def fromFiber[A](fiber: => Fiber[Throwable, A]): Task[A]
See also:
def fromFiberM[A](fiber: Task[Fiber[Throwable, A]]): Task[A]
See also:
def fromFunction[A](f: Any => A): Task[A]
def fromFunctionFuture[A](f: Any => Future[A]): Task[A]
def fromFunctionM[A](f: Any => Task[A]): Task[A]
def fromFuture[A](make: ExecutionContext => Future[A]): Task[A]
See also:
def fromTry[A](value: => Try[A]): Task[A]
See also:
final def getOrFail[A](v: => Option[A]): Task[A]
See also:
def halt(cause: => Cause[Throwable]): Task[Nothing]
See also:
def haltWith[E <: Throwable](function: () => ZTrace => Cause[E]): Task[Nothing]
See also:
def identity: Task[Any]
def ifM(b: Task[Boolean]): IfM[Any, Throwable]
See also:
def interruptAs(fiberId: => Id): UIO[Nothing]
See also:
def interruptible[A](task: Task[A]): Task[A]
See also:
def iterate[S](initial: S)(cont: S => Boolean)(body: S => Task[S]): Task[S]
See also:
def left[A](a: => A): Task[Either[A, Nothing]]
See also:
def lock[A](executor: => Executor)(task: Task[A]): Task[A]
See also:
def loop[A, S](initial: S)(cont: S => Boolean, inc: S => S)(body: S => Task[A]): Task[List[A]]
See also:
def loop_[S](initial: S)(cont: S => Boolean, inc: S => S)(body: S => Task[Any]): Task[Unit]
See also:
def mapN[A, B, C](task1: Task[A], task2: Task[B])(f: (A, B) => C): Task[C]
See also:
def mapN[A, B, C, D](task1: Task[A], task2: Task[B], task3: Task[C])(f: (A, B, C) => D): Task[D]
See also:
def mapN[A, B, C, D, F](task1: Task[A], task2: Task[B], task3: Task[C], task4: Task[D])(f: (A, B, C, D) => F): Task[F]
See also:
def mapParN[A, B, C](task1: Task[A], task2: Task[B])(f: (A, B) => C): Task[C]
See also:
def mapParN[A, B, C, D](task1: Task[A], task2: Task[B], task3: Task[C])(f: (A, B, C) => D): Task[D]
See also:
def mapParN[A, B, C, D, F](task1: Task[A], task2: Task[B], task3: Task[C], task4: Task[D])(f: (A, B, C, D) => F): Task[F]
See also:
def memoize[A, B](f: A => Task[B]): UIO[A => Task[B]]
See also:
def mergeAll[A, B](in: Iterable[Task[A]])(zero: B)(f: (B, A) => B): Task[B]
See also:
def mergeAllPar[A, B](in: Iterable[Task[A]])(zero: B)(f: (B, A) => B): Task[B]
See also:
def noneOrFailWith[O](o: Option[O])(f: O => Throwable): Task[Unit]
def not(effect: Task[Boolean]): Task[Boolean]
See also:
def partition[A, B](in: Iterable[A])(f: A => Task[B]): Task[(Iterable[Throwable], Iterable[B])]
See also:
def partitionPar[A, B](in: Iterable[A])(f: A => Task[B]): Task[(Iterable[Throwable], Iterable[B])]
See also:
def partitionParN[A, B](n: Int)(in: Iterable[A])(f: A => Task[B]): Task[(Iterable[Throwable], Iterable[B])]
See also:
def raceAll[A](task: Task[A], ios: Iterable[Task[A]]): Task[A]
See also:
def reduceAll[A](a: Task[A], as: Iterable[Task[A]])(f: (A, A) => A): Task[A]
See also:
def reduceAllPar[A](a: Task[A], as: Iterable[Task[A]])(f: (A, A) => A): Task[A]
See also:
def replicate[A](n: Int)(effect: Task[A]): Iterable[Task[A]]
See also:
def replicateM[A](n: Int)(effect: Task[A]): Task[Iterable[A]]
See also:
def replicateM_[A](n: Int)(effect: Task[A]): Task[Unit]
See also:
def require[A](error: => Throwable): Task[Option[A]] => Task[A]
See also:
def reserve[A, B](reservation: Task[Reservation[Any, Throwable, A]])(use: A => Task[B]): Task[B]
See also:
def right[B](b: => B): Task[Either[Nothing, B]]
See also:
def runtime: UIO[Runtime[Any]]
See also:
def some[A](a: => A): Task[Option[A]]
See also:
def succeed[A](a: => A): UIO[A]
See also:
See also:
def traced[A](task: Task[A]): Task[A]
See also:
def uninterruptible[A](task: Task[A]): Task[A]
def unless(b: => Boolean)(zio: => Task[Any]): Task[Unit]
See also:
See also:
def unsandbox[A](v: IO[Cause[Throwable], A]): Task[A]
def untraced[A](task: Task[A]): Task[A]
See also:
def when(b: => Boolean)(task: => Task[Any]): Task[Unit]
See also:
def whenCase[A](a: => A)(pf: PartialFunction[A, Task[Any]]): Task[Unit]
See also:
def whenCaseM[A](a: Task[A])(pf: PartialFunction[A, Task[Any]]): Task[Unit]
See also:
def whenM(b: Task[Boolean]): WhenM[Any, Throwable]
See also:

Inherited methods

Inherited from:
TaskPlatformSpecific

Alias for formCompletionStage for a concrete implementation of CompletionStage

Alias for formCompletionStage for a concrete implementation of CompletionStage

Inherited from:
TaskPlatformSpecific
Inherited from:
TaskPlatformSpecific

Concrete fields

val fiberId: UIO[Id]
See also:
val interrupt: UIO[Nothing]
See also:
val never: UIO[Nothing]
See also:
val none: Task[Option[Nothing]]
See also:
val unit: UIO[Unit]
See also:
See also: