Object

zio

Task

Related Doc: package zio

Permalink

object Task extends TaskPlatformSpecific

Linear Supertypes
TaskPlatformSpecific, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Task
  2. TaskPlatformSpecific
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def absolve[A](v: Task[Either[Throwable, A]]): Task[A]

    Permalink

    See also

    See zio.ZIO.absolve

  5. def allowInterrupt: UIO[Unit]

    Permalink

  6. def apply[A](a: ⇒ A): Task[A]

    Permalink

    See also

    See zio.ZIO.apply

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def bracket[A, B](acquire: Task[A], release: (A) ⇒ UIO[Any], use: (A) ⇒ Task[B]): Task[B]

    Permalink

    See also

    See bracket zio.ZIO

  9. def bracket[A](acquire: Task[A]): BracketAcquire[Any, Throwable, A]

    Permalink

    See also

    See bracket zio.ZIO

  10. def bracketExit[A, B](acquire: Task[A], release: (A, Exit[Throwable, B]) ⇒ UIO[Any], use: (A) ⇒ Task[B]): Task[B]

    Permalink

    See also

    See bracketExit zio.ZIO

  11. def bracketExit[A](acquire: Task[A]): BracketExitAcquire[Any, Throwable, A]

    Permalink

    See also

    See bracketExit zio.ZIO

  12. def checkInterruptible[A](f: (InterruptStatus) ⇒ Task[A]): Task[A]

    Permalink

  13. def checkTraced[A](f: (TracingStatus) ⇒ Task[A]): Task[A]

    Permalink

    See also

    See zio.ZIO.checkTraced

  14. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def collect[A, B, Collection[+Element] <: Iterable[Element]](in: Collection[A])(f: (A) ⇒ IO[Option[Throwable], B])(implicit bf: zio.BuildFrom[Collection[A], B, Collection[B]]): Task[Collection[B]]

    Permalink

    See also

    See zio.ZIO.collect

  16. def collectAll[A](in: NonEmptyChunk[Task[A]]): Task[NonEmptyChunk[A]]

    Permalink

  17. def collectAll[A](in: Set[Task[A]]): Task[Set[A]]

    Permalink

  18. def collectAll[A, Collection[+Element] <: Iterable[Element]](in: Collection[Task[A]])(implicit bf: zio.BuildFrom[Collection[Task[A]], A, Collection[A]]): Task[Collection[A]]

    Permalink

  19. def collectAllPar[A](as: NonEmptyChunk[Task[A]]): Task[NonEmptyChunk[A]]

    Permalink

  20. def collectAllPar[A](as: Set[Task[A]]): Task[Set[A]]

    Permalink

  21. def collectAllPar[A, Collection[+Element] <: Iterable[Element]](as: Collection[Task[A]])(implicit bf: zio.BuildFrom[Collection[Task[A]], A, Collection[A]]): Task[Collection[A]]

    Permalink

  22. def collectAllParN[A, Collection[+Element] <: Iterable[Element]](n: Int)(as: Collection[Task[A]])(implicit bf: zio.BuildFrom[Collection[Task[A]], A, Collection[A]]): Task[Collection[A]]

    Permalink

  23. def collectAllParN_[A](n: Int)(as: Iterable[Task[A]]): Task[Unit]

    Permalink

  24. def collectAllPar_[A](in: Iterable[Task[A]]): Task[Unit]

    Permalink

  25. def collectAllSuccesses[A, Collection[+Element] <: Iterable[Element]](in: Collection[Task[A]])(implicit bf: zio.BuildFrom[Collection[Task[A]], A, Collection[A]]): UIO[Collection[A]]

    Permalink

  26. def collectAllSuccessesPar[A, Collection[+Element] <: Iterable[Element]](as: Collection[Task[A]])(implicit bf: zio.BuildFrom[Collection[Task[A]], A, Collection[A]]): UIO[Collection[A]]

    Permalink

  27. def collectAllSuccessesParN[A, Collection[+Element] <: Iterable[Element]](n: Int)(as: Collection[Task[A]])(implicit bf: zio.BuildFrom[Collection[Task[A]], A, Collection[A]]): UIO[Collection[A]]

    Permalink

  28. def collectAllWith[A, B, Collection[+Element] <: Iterable[Element]](as: Collection[Task[A]])(f: PartialFunction[A, B])(implicit bf: zio.BuildFrom[Collection[Task[A]], B, Collection[B]]): Task[Collection[B]]

    Permalink

  29. def collectAllWithPar[A, B, Collection[+Element] <: Iterable[Element]](as: Collection[Task[A]])(f: PartialFunction[A, B])(implicit bf: zio.BuildFrom[Collection[Task[A]], B, Collection[B]]): Task[Collection[B]]

    Permalink

  30. def collectAllWithParN[A, B, Collection[+Element] <: Iterable[Element]](n: Int)(as: Collection[Task[A]])(f: PartialFunction[A, B])(implicit bf: zio.BuildFrom[Collection[Task[A]], B, Collection[B]]): Task[Collection[B]]

    Permalink

  31. def collectAll_[A](in: Iterable[Task[A]]): Task[Unit]

    Permalink

  32. def collectPar[A, B, Collection[+Element] <: Iterable[Element]](in: Collection[A])(f: (A) ⇒ IO[Option[Throwable], B])(implicit bf: zio.BuildFrom[Collection[A], B, Collection[B]]): Task[Collection[B]]

    Permalink

    See also

    See zio.ZIO.collectPar

  33. def collectParN[A, B, Collection[+Element] <: Iterable[Element]](n: Int)(in: Collection[A])(f: (A) ⇒ IO[Option[Throwable], B])(implicit bf: zio.BuildFrom[Collection[A], B, Collection[B]]): Task[Collection[B]]

    Permalink

    See also

    See zio.ZIO.collectParN

  34. def cond[A](predicate: Boolean, result: ⇒ A, error: ⇒ Throwable): Task[A]

    Permalink

    See also

    See zio.ZIO.cond

  35. def descriptor: UIO[Descriptor]

    Permalink

    See also

    See zio.ZIO.descriptor

  36. def descriptorWith[A](f: (Descriptor) ⇒ Task[A]): Task[A]

    Permalink

  37. def die(t: ⇒ Throwable): UIO[Nothing]

    Permalink

    See also

    See zio.ZIO.die

  38. def dieMessage(message: ⇒ String): UIO[Nothing]

    Permalink

    See also

    See zio.ZIO.dieMessage

  39. def done[A](r: ⇒ Exit[Throwable, A]): Task[A]

    Permalink

    See also

    See zio.ZIO.done

  40. def effect[A](effect: ⇒ A): Task[A]

    Permalink

    See also

    See zio.ZIO.effect

  41. def effectAsync[A](register: ((Task[A]) ⇒ Unit) ⇒ Any, blockingOn: List[Id] = Nil): Task[A]

    Permalink

    See also

    See zio.ZIO.effectAsync

  42. def effectAsyncInterrupt[A](register: ((Task[A]) ⇒ Unit) ⇒ Either[Canceler[Any], Task[A]], blockingOn: List[Id] = Nil): Task[A]

    Permalink

  43. def effectAsyncM[A](register: ((Task[A]) ⇒ Unit) ⇒ Task[Any]): Task[A]

    Permalink

  44. def effectAsyncMaybe[A](register: ((Task[A]) ⇒ Unit) ⇒ Option[Task[A]], blockingOn: List[Id] = Nil): Task[A]

    Permalink

  45. def effectSuspend[A](task: ⇒ Task[A]): Task[A]

    Permalink

  46. def effectSuspendTotal[A](task: ⇒ Task[A]): Task[A]

    Permalink

  47. def effectSuspendTotalWith[A](p: (Platform, Id) ⇒ Task[A]): Task[A]

    Permalink

  48. def effectSuspendWith[A](p: (Platform, Id) ⇒ Task[A]): Task[A]

    Permalink

  49. def effectTotal[A](effect: ⇒ A): UIO[A]

    Permalink

    See also

    See zio.ZIO.effectTotal

  50. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  51. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  52. def fail(error: ⇒ Throwable): Task[Nothing]

    Permalink

    See also

    See zio.ZIO.fail

  53. val fiberId: UIO[Id]

    Permalink

  54. def filter[A, Collection[+Element] <: Iterable[Element]](as: Collection[A])(f: (A) ⇒ Task[Boolean])(implicit bf: zio.BuildFrom[Collection[A], A, Collection[A]]): Task[Collection[A]]

    Permalink

  55. def filterNot[A, Collection[+Element] <: Iterable[Element]](as: Collection[A])(f: (A) ⇒ Task[Boolean])(implicit bf: zio.BuildFrom[Collection[A], A, Collection[A]]): Task[Collection[A]]

    Permalink

  56. def filterNotPar[A, Collection[+Element] <: Iterable[Element]](as: Collection[A])(f: (A) ⇒ Task[Boolean])(implicit bf: zio.BuildFrom[Collection[A], A, Collection[A]]): Task[Collection[A]]

    Permalink

  57. def filterPar[A, Collection[+Element] <: Iterable[Element]](as: Collection[A])(f: (A) ⇒ Task[Boolean])(implicit bf: zio.BuildFrom[Collection[A], A, Collection[A]]): Task[Collection[A]]

    Permalink

  58. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  59. def firstSuccessOf[A](task: Task[A], rest: Iterable[Task[A]]): Task[A]

    Permalink

  60. def flatten[A](task: Task[Task[A]]): Task[A]

    Permalink

    See also

    See zio.ZIO.flatten

  61. def foldLeft[S, A](in: Iterable[A])(zero: S)(f: (S, A) ⇒ Task[S]): Task[S]

    Permalink

    See also

    See zio.ZIO.foldLeft

  62. def foldRight[S, A](in: Iterable[A])(zero: S)(f: (A, S) ⇒ Task[S]): Task[S]

    Permalink

    See also

    See zio.ZIO.foldRight

  63. def foreach[A, B](in: NonEmptyChunk[A])(f: (A) ⇒ Task[B]): Task[NonEmptyChunk[B]]

    Permalink

  64. def foreach[A, B](in: Option[A])(f: (A) ⇒ Task[B]): Task[Option[B]]

    Permalink

  65. def foreach[A, B](in: Set[A])(f: (A) ⇒ Task[B]): Task[Set[B]]

    Permalink

  66. def foreach[A, B, Collection[+Element] <: Iterable[Element]](in: Collection[A])(f: (A) ⇒ Task[B])(implicit bf: zio.BuildFrom[Collection[A], B, Collection[B]]): Task[Collection[B]]

    Permalink

  67. final def foreachExec[A, B, Collection[+Element] <: Iterable[Element]](as: Collection[A])(exec: ExecutionStrategy)(f: (A) ⇒ Task[B])(implicit bf: zio.BuildFrom[Collection[A], B, Collection[B]]): Task[Collection[B]]

    Permalink

    See also

    See zio.ZIO.foreachExec

  68. def foreachPar[A, B](as: NonEmptyChunk[A])(fn: (A) ⇒ Task[B]): Task[NonEmptyChunk[B]]

    Permalink

  69. def foreachPar[A, B](as: Set[A])(fn: (A) ⇒ Task[B]): Task[Set[B]]

    Permalink

  70. def foreachPar[A, B, Collection[+Element] <: Iterable[Element]](as: Collection[A])(fn: (A) ⇒ Task[B])(implicit bf: zio.BuildFrom[Collection[A], B, Collection[B]]): Task[Collection[B]]

    Permalink

  71. def foreachParN[A, B, Collection[+Element] <: Iterable[Element]](n: Int)(as: Collection[A])(fn: (A) ⇒ Task[B])(implicit bf: zio.BuildFrom[Collection[A], B, Collection[B]]): Task[Collection[B]]

    Permalink

    See also

    See zio.ZIO.foreachParN

  72. def foreachParN_[A, B](n: Int)(as: Iterable[A])(f: (A) ⇒ Task[Any]): Task[Unit]

    Permalink

  73. def foreachPar_[A, B](as: Iterable[A])(f: (A) ⇒ Task[Any]): Task[Unit]

    Permalink

  74. def foreach_[A](as: Iterable[A])(f: (A) ⇒ Task[Any]): Task[Unit]

    Permalink

  75. def forkAll[A, Collection[+Element] <: Iterable[Element]](as: Collection[Task[A]])(implicit bf: zio.BuildFrom[Collection[Task[A]], A, Collection[A]]): UIO[Fiber[Throwable, Collection[A]]]

    Permalink

    See also

    See zio.ZIO.forkAll

  76. def forkAll_[A](as: Iterable[Task[A]]): UIO[Unit]

    Permalink

    See also

    See zio.ZIO.forkAll_

  77. def fromEither[A](v: ⇒ Either[Throwable, A]): Task[A]

    Permalink

    See also

    See zio.ZIO.fromEither

  78. def fromFiber[A](fiber: ⇒ Fiber[Throwable, A]): Task[A]

    Permalink

    See also

    See zio.ZIO.fromFiber

  79. def fromFiberM[A](fiber: Task[Fiber[Throwable, A]]): Task[A]

    Permalink

    See also

    See zio.ZIO.fromFiberM

  80. def fromFunction[A](f: (Any) ⇒ A): Task[A]

    Permalink

  81. def fromFunctionFuture[A](f: (Any) ⇒ Future[A]): Task[A]

    Permalink

  82. def fromFunctionM[A](f: (Any) ⇒ Task[A]): Task[A]

    Permalink

  83. def fromFuture[A](make: (ExecutionContext) ⇒ Future[A]): Task[A]

    Permalink

    See also

    See zio.ZIO.fromFuture

  84. def fromFutureInterrupt[A](make: (ExecutionContext) ⇒ Future[A]): Task[A]

    Permalink

  85. def fromPromiseJS[A](promise: ⇒ scala.scalajs.js.Promise[A]): Task[A]

    Permalink

    Imports a Scala.js promise into a Task.

    Imports a Scala.js promise into a Task.

    Definition Classes
    TaskPlatformSpecific
  86. def fromTry[A](value: ⇒ Try[A]): Task[A]

    Permalink

    See also

    See zio.ZIO.fromTry

  87. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  88. final def getOrFail[A](v: ⇒ Option[A]): Task[A]

    Permalink

    See also

    See zio.ZIO.getOrFail

  89. def halt(cause: ⇒ Cause[Throwable]): Task[Nothing]

    Permalink

    See also

    See zio.ZIO.halt

  90. def haltWith[E <: Throwable](function: (() ⇒ ZTrace) ⇒ Cause[E]): Task[Nothing]

    Permalink

    See also

    See zio.ZIO.haltWith

  91. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  92. def identity: Task[Any]

    Permalink

  93. def ifM(b: Task[Boolean]): IfM[Any, Throwable]

    Permalink

    See also

    zio.ZIO.ifM

  94. val interrupt: UIO[Nothing]

    Permalink

    See also

    See zio.ZIO.interrupt

  95. def interruptAs(fiberId: ⇒ Id): UIO[Nothing]

    Permalink

    See also

    See zio.ZIO.interruptAs

  96. def interruptible[A](task: Task[A]): Task[A]

    Permalink

  97. def interruptibleMask[A](k: (InterruptStatusRestore) ⇒ Task[A]): Task[A]

    Permalink

  98. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  99. def iterate[S](initial: S)(cont: (S) ⇒ Boolean)(body: (S) ⇒ Task[S]): Task[S]

    Permalink

    See also

    See zio.ZIO.iterate

  100. def left[A](a: ⇒ A): Task[Either[A, Nothing]]

    Permalink

    See also

    See zio.ZIO.left

  101. def lock[A](executor: ⇒ Executor)(task: Task[A]): Task[A]

    Permalink

    See also

    See zio.ZIO.lock

  102. def loop[A, S](initial: S)(cont: (S) ⇒ Boolean, inc: (S) ⇒ S)(body: (S) ⇒ Task[A]): Task[List[A]]

    Permalink

    See also

    See zio.ZIO.loop

  103. def loop_[S](initial: S)(cont: (S) ⇒ Boolean, inc: (S) ⇒ S)(body: (S) ⇒ Task[Any]): Task[Unit]

    Permalink

    See also

    See zio.ZIO.loop_

  104. 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]

    Permalink

  105. def mapN[A, B, C, D](task1: Task[A], task2: Task[B], task3: Task[C])(f: (A, B, C) ⇒ D): Task[D]

    Permalink

  106. def mapN[A, B, C](task1: Task[A], task2: Task[B])(f: (A, B) ⇒ C): Task[C]

    Permalink

  107. 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]

    Permalink

  108. def mapParN[A, B, C, D](task1: Task[A], task2: Task[B], task3: Task[C])(f: (A, B, C) ⇒ D): Task[D]

    Permalink

  109. def mapParN[A, B, C](task1: Task[A], task2: Task[B])(f: (A, B) ⇒ C): Task[C]

    Permalink

  110. def memoize[A, B](f: (A) ⇒ Task[B]): UIO[(A) ⇒ Task[B]]

    Permalink

    See also

    See zio.ZIO.memoize

  111. def mergeAll[A, B](in: Iterable[Task[A]])(zero: B)(f: (B, A) ⇒ B): Task[B]

    Permalink

    See also

    See zio.ZIO.mergeAll

  112. def mergeAllPar[A, B](in: Iterable[Task[A]])(zero: B)(f: (B, A) ⇒ B): Task[B]

    Permalink

    See also

    See zio.ZIO.mergeAllPar

  113. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  114. val never: UIO[Nothing]

    Permalink

    See also

    See zio.ZIO.never

  115. val none: Task[Option[Nothing]]

    Permalink

    See also

    See zio.ZIO.none

  116. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  117. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  118. def partition[A, B](in: Iterable[A])(f: (A) ⇒ Task[B]): Task[(Iterable[Throwable], Iterable[B])]

    Permalink

    See also

    See zio.ZIO.partition

  119. def partitionPar[A, B](in: Iterable[A])(f: (A) ⇒ Task[B]): Task[(Iterable[Throwable], Iterable[B])]

    Permalink

  120. def partitionParN[A, B](n: Int)(in: Iterable[A])(f: (A) ⇒ Task[B]): Task[(Iterable[Throwable], Iterable[B])]

    Permalink

  121. def raceAll[A](task: Task[A], ios: Iterable[Task[A]]): Task[A]

    Permalink

    See also

    See zio.ZIO.raceAll

  122. def reduceAll[A](a: Task[A], as: Iterable[Task[A]])(f: (A, A) ⇒ A): Task[A]

    Permalink

    See also

    See zio.ZIO.reduceAll

  123. def reduceAllPar[A](a: Task[A], as: Iterable[Task[A]])(f: (A, A) ⇒ A): Task[A]

    Permalink

  124. def replicate[A](n: Int)(effect: Task[A]): Iterable[Task[A]]

    Permalink

    See also

    See zio.ZIO.replicate

  125. def require[A](error: ⇒ Throwable): (Task[Option[A]]) ⇒ Task[A]

    Permalink

    See also

    See zio.ZIO.require

  126. def reserve[A, B](reservation: Task[Reservation[Any, Throwable, A]])(use: (A) ⇒ Task[B]): Task[B]

    Permalink

    See also

    See zio.ZIO.reserve

  127. def right[B](b: ⇒ B): Task[Either[Nothing, B]]

    Permalink

    See also

    zio.ZIO.right

  128. def runtime: UIO[Runtime[Any]]

    Permalink

    See also

    See zio.ZIO.runtime

  129. def some[A](a: ⇒ A): Task[Option[A]]

    Permalink

    See also

    zio.ZIO.some

  130. def succeed[A](a: ⇒ A): UIO[A]

    Permalink

    See also

    See zio.ZIO.succeed

  131. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  132. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  133. def trace: UIO[ZTrace]

    Permalink

    See also

    See zio.ZIO.trace

  134. def traced[A](task: Task[A]): Task[A]

    Permalink

    See also

    See zio.ZIO.traced

  135. def uninterruptible[A](task: Task[A]): Task[A]

    Permalink

  136. def uninterruptibleMask[A](k: (InterruptStatusRestore) ⇒ Task[A]): Task[A]

    Permalink

  137. val unit: UIO[Unit]

    Permalink

    See also

    See zio.ZIO.unit

  138. def unless(b: ⇒ Boolean)(zio: ⇒ Task[Any]): Task[Unit]

    Permalink

    See also

    See zio.ZIO.unless

  139. def unlessM(b: Task[Boolean]): UnlessM[Any, Throwable]

    Permalink

    See also

    See zio.ZIO.unlessM

  140. def unsandbox[A](v: IO[Cause[Throwable], A]): Task[A]

    Permalink

  141. def untraced[A](task: Task[A]): Task[A]

    Permalink

    See also

    See zio.ZIO.untraced

  142. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  143. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  144. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  145. def when(b: ⇒ Boolean)(task: ⇒ Task[Any]): Task[Unit]

    Permalink

    See also

    See zio.ZIO.when

  146. def whenCase[A](a: ⇒ A)(pf: PartialFunction[A, Task[Any]]): Task[Unit]

    Permalink

    See also

    See zio.ZIO.whenCase

  147. def whenCaseM[A](a: Task[A])(pf: PartialFunction[A, Task[Any]]): Task[Unit]

    Permalink

    See also

    See zio.ZIO.whenCaseM

  148. def whenM(b: Task[Boolean]): WhenM[Any, Throwable]

    Permalink

    See also

    See zio.ZIO.whenM

  149. val yieldNow: UIO[Unit]

    Permalink

    See also

    See zio.ZIO.yieldNow

Inherited from TaskPlatformSpecific

Inherited from AnyRef

Inherited from Any

Ungrouped