Packages

o

zio

Task

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
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def absolve[A](v: ⇒ Task[Either[Throwable, A]]): Task[A]

    See also

    See zio.ZIO.absolve

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

    See also

    See acquireReleaseExitWith zio.ZIO

  6. def acquireReleaseExitWith[A](acquire: ⇒ Task[A]): BracketExitAcquire[Any, Throwable, A]

    See also

    See acquireReleaseExitWith zio.ZIO

  7. def acquireReleaseWith[A, B](acquire: ⇒ Task[A], release: (A) ⇒ UIO[Any], use: (A) ⇒ Task[B]): Task[B]

    See also

    See acquireReleaseWith zio.ZIO

  8. def acquireReleaseWith[A](acquire: ⇒ Task[A]): BracketAcquire[Any, Throwable, A]

    See also

    See acquireReleaseWith zio.ZIO

  9. def allowInterrupt: UIO[Unit]

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

    See also

    See zio.ZIO.apply

  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def async[A](register: ((Task[A]) ⇒ Unit) ⇒ Any, blockingOn: ⇒ FiberId = FiberId.None): Task[A]

    See also

    See zio.ZIO.async

  13. def asyncInterrupt[A](register: ((Task[A]) ⇒ Unit) ⇒ Either[Canceler[Any], Task[A]], blockingOn: ⇒ FiberId = FiberId.None): Task[A]

  14. def asyncMaybe[A](register: ((Task[A]) ⇒ Unit) ⇒ Option[Task[A]], blockingOn: ⇒ FiberId = FiberId.None): Task[A]

    See also

    See zio.ZIO.asyncMaybe

  15. def asyncWithCompletionHandler[T](op: (CompletionHandler[T, Any]) ⇒ Any): Task[T]
    Definition Classes
    TaskPlatformSpecific
  16. def asyncZIO[A](register: ((Task[A]) ⇒ Unit) ⇒ Task[Any]): Task[A]

    See also

    See zio.ZIO.asyncZIO

  17. def attempt[A](effect: ⇒ A): Task[A]

    See also

    See zio.ZIO.attempt

  18. def attemptBlocking[A](effect: ⇒ A): Task[A]

  19. def attemptBlockingCancelable[A](effect: ⇒ A)(cancel: ⇒ UIO[Any]): Task[A]

  20. def attemptBlockingInterrupt[A](effect: ⇒ A): Task[A]

  21. def blocking[A](zio: ⇒ Task[A]): Task[A]

    See also

    See zio.ZIO.blocking

  22. def blockingExecutor: UIO[Executor]

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

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

    See also

    See zio.ZIO.checkTraced

  25. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  26. def collect[Key, Key2, Value, Value2](map: Map[Key, Value])(f: (Key, Value) ⇒ IO[Option[Throwable], (Key2, Value2)]): Task[Map[Key2, Value2]]

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

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

  29. def collectAll[A](in: Option[Task[A]]): Task[Option[A]]

  30. def collectAll[A](in: Array[Task[A]])(implicit arg0: ClassTag[A]): Task[Array[A]]

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

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

  33. def collectAllDiscard[A](in: ⇒ Iterable[Task[A]]): Task[Unit]

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

  35. def collectAllPar[A](as: Array[Task[A]])(implicit arg0: ClassTag[A]): Task[Array[A]]

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

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

  38. def collectAllParDiscard[A](in: ⇒ Iterable[Task[A]]): Task[Unit]

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

  40. def collectAllParNDiscard[A](n: ⇒ Int)(as: ⇒ Iterable[Task[A]]): Task[Unit]

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

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

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

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

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

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

  47. def collectFirst[A, B](as: ⇒ Iterable[A])(f: (A) ⇒ Task[Option[B]]): Task[Option[B]]

  48. def collectPar[Key, Key2, Value, Value2](map: Map[Key, Value])(f: (Key, Value) ⇒ IO[Option[Throwable], (Key2, Value2)]): Task[Map[Key2, Value2]]

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

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

    See also

    See zio.ZIO.collectParN

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

    See also

    See zio.ZIO.cond

  52. def debug(value: ⇒ Any): UIO[Unit]

    See also

    See zio.ZIO.debug

  53. def descriptor: UIO[Descriptor]

    See also

    See zio.ZIO.descriptor

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

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

    See also

    See zio.ZIO.die

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

    See also

    See zio.ZIO.dieMessage

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

    See also

    See zio.ZIO.done

  58. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  59. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  60. def executor: UIO[Executor]

    See also

    See zio.ZIO.executor

  61. def exists[A](as: ⇒ Iterable[A])(f: (A) ⇒ Task[Boolean]): Task[Boolean]

    See also

    See zio.ZIO.exists

  62. def fail(error: ⇒ Throwable): Task[Nothing]

    See also

    See zio.ZIO.fail

  63. def failCause(cause: ⇒ Cause[Throwable]): Task[Nothing]

    See also

    See zio.ZIO.failCause

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

  65. val fiberId: UIO[FiberId]

  66. def filter[A](as: Set[A])(f: (A) ⇒ Task[Boolean]): Task[Set[A]]

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

  68. def filterNot[A](as: Set[A])(f: (A) ⇒ Task[Boolean]): Task[Set[A]]

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

  70. def filterNotPar[A](as: Set[A])(f: (A) ⇒ Task[Boolean]): Task[Set[A]]

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

  72. def filterPar[A](as: Set[A])(f: (A) ⇒ Task[Boolean]): Task[Set[A]]

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

  74. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  75. def firstSuccessOf[A](task: ⇒ Task[A], rest: ⇒ Iterable[Task[A]]): Task[A]

  76. def flatten[A](task: ⇒ Task[Task[A]]): Task[A]

    See also

    See zio.ZIO.flatten

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

    See also

    See zio.ZIO.foldLeft

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

    See also

    See zio.ZIO.foldRight

  79. def forall[A](as: ⇒ Iterable[A])(f: (A) ⇒ Task[Boolean]): Task[Boolean]

    See also

    See zio.ZIO.forall

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

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

  82. def foreach[Key, Key2, Value, Value2](map: Map[Key, Value])(f: (Key, Value) ⇒ Task[(Key2, Value2)]): Task[Map[Key2, Value2]]

  83. def foreach[A, B](in: Array[A])(f: (A) ⇒ Task[B])(implicit arg0: ClassTag[B]): Task[Array[B]]

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

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

  86. def foreachDiscard[A](as: ⇒ Iterable[A])(f: (A) ⇒ Task[Any]): Task[Unit]

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

    See also

    See zio.ZIO.foreachExec

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

  89. def foreachPar[Key, Key2, Value, Value2](map: Map[Key, Value])(f: (Key, Value) ⇒ Task[(Key2, Value2)]): Task[Map[Key2, Value2]]

  90. def foreachPar[A, B](as: Array[A])(fn: (A) ⇒ Task[B])(implicit arg0: ClassTag[B]): Task[Array[B]]

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

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

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

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

    See also

    See zio.ZIO.foreachParN

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

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

    See also

    See zio.ZIO.forkAll

  97. def forkAllDiscard[A](as: ⇒ Iterable[Task[A]]): UIO[Unit]

  98. def from[Input](input: ⇒ Input)(implicit constructor: ZIOConstructor[Any, Throwable, Input]): ZIO[OutEnvironment, OutError, OutSuccess]

    Constructs a Task value of the appropriate type for the specified input.

  99. def fromCompletableFuture[A](cs: ⇒ CompletableFuture[A]): Task[A]

    Alias for formCompletionStage for a concrete implementation of CompletionStage

    Alias for formCompletionStage for a concrete implementation of CompletionStage

    Definition Classes
    TaskPlatformSpecific
  100. def fromCompletionStage[A](cs: ⇒ CompletionStage[A]): Task[A]
    Definition Classes
    TaskPlatformSpecific
  101. def fromEither[A](v: ⇒ Either[Throwable, A]): Task[A]

    See also

    See zio.ZIO.fromEither

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

    See also

    See zio.ZIO.fromFiber

  103. def fromFiberZIO[A](fiber: ⇒ Task[Fiber[Throwable, A]]): Task[A]

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

    See also

    See zio.ZIO.fromFuture

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

  106. def fromTry[A](value: ⇒ Try[A]): Task[A]

    See also

    See zio.ZIO.fromTry

  107. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  108. final def getOrFail[A](v: ⇒ Option[A]): Task[A]

    See also

    See zio.ZIO.getOrFail

  109. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  110. def ifZIO(b: ⇒ Task[Boolean]): IfZIO[Any, Throwable]

    See also

    zio.ZIO.ifZIO

  111. val interrupt: UIO[Nothing]

    See also

    See zio.ZIO.interrupt

  112. def interruptAs(fiberId: ⇒ FiberId): UIO[Nothing]

    See also

    See zio.ZIO.interruptAs

  113. def interruptible[A](task: ⇒ Task[A]): Task[A]

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

  115. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  116. def iterate[S](initial: ⇒ S)(cont: (S) ⇒ Boolean)(body: (S) ⇒ Task[S]): Task[S]

    See also

    See zio.ZIO.iterate

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

    See also

    See zio.ZIO.left

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

    See also

    See zio.ZIO.loop

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

    See also

    See zio.ZIO.loopDiscard

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

    See also

    See zio.ZIO.memoize

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

    See also

    See zio.ZIO.mergeAll

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

    See also

    See zio.ZIO.mergeAllPar

  123. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  124. val never: UIO[Nothing]

    See also

    See zio.ZIO.never

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

    See also

    See zio.ZIO.none

  126. def noneOrFail(o: ⇒ Option[Throwable]): Task[Unit]

    See also

    See zio.ZIO.noneOrFail

  127. def noneOrFailWith[O](o: ⇒ Option[O])(f: (O) ⇒ Throwable): Task[Unit]

  128. def not(effect: ⇒ Task[Boolean]): Task[Boolean]

    See also

    See zio.ZIO.not

  129. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  130. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  131. def onExecutor[A](executor: ⇒ Executor)(task: Task[A]): Task[A]

    See also

    See zio.ZIO.onExecutor

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

    See also

    See zio.ZIO.partition

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

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

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

    See also

    See zio.ZIO.raceAll

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

    See also

    See zio.ZIO.reduceAll

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

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

    See also

    See zio.ZIO.replicate

  139. def replicateZIO[A](n: ⇒ Int)(effect: ⇒ Task[A]): Task[Iterable[A]]

  140. def replicateZIODiscard[A](n: ⇒ Int)(effect: ⇒ Task[A]): Task[Unit]

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

    See also

    See zio.ZIO.reserve

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

    See also

    zio.ZIO.right

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

    See also

    See zio.ZIO.runtime

  144. val runtimeConfig: UIO[RuntimeConfig]

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

    See also

    zio.ZIO.some

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

    See also

    See zio.ZIO.succeed

  147. def succeedBlocking[A](a: ⇒ A): UIO[A]

  148. def suspend[A](task: ⇒ Task[A]): Task[A]

    See also

    See zio.ZIO.suspend

  149. def suspendSucceed[A](task: ⇒ Task[A]): Task[A]

  150. def suspendSucceedWith[A](f: (RuntimeConfig, FiberId) ⇒ Task[A]): Task[A]

  151. def suspendWith[A](f: (RuntimeConfig, FiberId) ⇒ Task[A]): Task[A]

    See also

    See zio.RIO.suspendWith

  152. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  153. def toString(): String
    Definition Classes
    AnyRef → Any
  154. def trace: UIO[ZTrace]

    See also

    See zio.ZIO.trace

  155. def traced[A](task: ⇒ Task[A]): Task[A]

    See also

    See zio.ZIO.traced

  156. def uninterruptible[A](task: ⇒ Task[A]): Task[A]

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

  158. val unit: UIO[Unit]

    See also

    See zio.ZIO.unit

  159. def unless[A](b: ⇒ Boolean)(zio: ⇒ Task[A]): Task[Option[A]]

    See also

    See zio.ZIO.unless

  160. def unlessZIO(b: ⇒ Task[Boolean]): UnlessZIO[Any, Throwable]

    See also

    See zio.ZIO.unlessZIO

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

  162. def untraced[A](task: ⇒ Task[A]): Task[A]

    See also

    See zio.ZIO.untraced

  163. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  164. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  165. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  166. def when[A](b: ⇒ Boolean)(task: ⇒ Task[A]): Task[Option[A]]

    See also

    See zio.ZIO.when

  167. def whenCase[A, B](a: ⇒ A)(pf: PartialFunction[A, Task[B]]): Task[Option[B]]

    See also

    See zio.ZIO.whenCase

  168. def whenCaseZIO[A, B](a: ⇒ Task[A])(pf: PartialFunction[A, Task[B]]): Task[Option[B]]

    See also

    See zio.ZIO.whenCaseZIO

  169. def whenZIO(b: ⇒ Task[Boolean]): WhenZIO[Any, Throwable]

    See also

    See zio.ZIO.whenZIO

  170. def withRuntimeConfig[A](runtimeConfig: ⇒ RuntimeConfig)(task: ⇒ Task[A]): Task[A]

  171. val yieldNow: UIO[Unit]

    See also

    See zio.ZIO.yieldNow

Deprecated Value Members

  1. def bracket[A, B](acquire: ⇒ Task[A], release: (A) ⇒ UIO[Any], use: (A) ⇒ Task[B]): Task[B]

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use acquireReleaseWith

    See also

    See bracket zio.ZIO

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use acquireReleaseWith

    See also

    See bracket zio.ZIO

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use acquireReleaseExitWith

    See also

    See bracketExit zio.ZIO

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use acquireReleaseExitWith

    See also

    See bracketExit zio.ZIO

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use collectAllParNDiscard

    See also

    See zio.ZIO.collectAllParN_

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use collectAllParDiscard

    See also

    See zio.ZIO.collectAllPar_

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use collectAllDiscard

    See also

    See zio.ZIO.collectAll_

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use attempt

    See also

    See zio.ZIO.effect

  9. def effectAsync[A](register: ((Task[A]) ⇒ Unit) ⇒ Any, blockingOn: ⇒ FiberId = FiberId.None): Task[A]

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use async

    See also

    See zio.ZIO.effectAsync

  10. def effectAsyncInterrupt[A](register: ((Task[A]) ⇒ Unit) ⇒ Either[Canceler[Any], Task[A]], blockingOn: ⇒ FiberId = FiberId.None): Task[A]

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use asyncInterrupt

    See also

    See zio.ZIO.effectAsyncInterrupt

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use asyncZIO

    See also

    See zio.ZIO.effectAsyncM

  12. def effectAsyncMaybe[A](register: ((Task[A]) ⇒ Unit) ⇒ Option[Task[A]], blockingOn: ⇒ FiberId = FiberId.None): Task[A]

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use asyncMaybe

    See also

    See zio.ZIO.effectAsyncMaybe

  13. def effectAsyncWithCompletionHandler[T](op: (CompletionHandler[T, Any]) ⇒ Any): Task[T]
    Definition Classes
    TaskPlatformSpecific
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use asyncWithCompletionHandler

  14. def effectBlocking[A](effect: ⇒ A): Task[A]

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use attemptBlocking

    See also

    See zio.ZIO.effectBlocking

  15. def effectBlockingCancelable[A](effect: ⇒ A)(cancel: ⇒ UIO[Any]): Task[A]

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use attemptBlockingCancelable

    See also

    See zio.ZIO.effectBlockingCancelable

  16. def effectBlockingInterrupt[A](effect: ⇒ A): Task[A]

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use attemptBlockingInterrupt

    See also

    See zio.ZIO.effectBlockingInterrupt

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use suspend

    See also

    See zio.RIO.effectSuspend

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use suspendSucceed

    See also

    See zio.ZIO.effectSuspendTotal

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use suspendSucceedWith

    See also

    See zio.ZIO.effectSuspendTotalWith

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use suspendWith

    See also

    See zio.RIO.effectSuspendWith

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use succeed

    See also

    See zio.ZIO.effectTotal

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use foreachParNDiscard

    See also

    See zio.ZIO.foreachParN_

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use foreachParDiscard

    See also

    See zio.ZIO.foreachPar_

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use foreachDiscard

    See also

    See zio.ZIO.foreach_

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use forkAllDiscard

    See also

    See zio.ZIO.forkAll_

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use fromFiberZIO

    See also

    See zio.ZIO.fromFiberM

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use failCause

    See also

    See zio.ZIO.halt

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use failCauseWith

    See also

    See zio.ZIO.haltWith

  29. def ifM(b: ⇒ Task[Boolean]): IfZIO[Any, Throwable]

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use ifZIO

    See also

    zio.ZIO.ifM

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use onExecutor

    See also

    See zio.ZIO.lock

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use loopDiscard

    See also

    See zio.ZIO.loop_

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use zip

    See also

    zio.ZIO.mapN[R,E,A,B,C,D,F]*

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use zip

    See also

    zio.ZIO.mapN[R,E,A,B,C,D]*

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use zip

    See also

    zio.ZIO.mapN[R,E,A,B,C]*

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use zipPar

    See also

    zio.ZIO.mapParN[R,E,A,B,C,D,F]*

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use zipPar

    See also

    zio.ZIO.mapParN[R,E,A,B,C,D]*

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use zipPar

    See also

    zio.ZIO.mapParN[R,E,A,B,C]*

  38. def replicateM[A](n: ⇒ Int)(effect: ⇒ Task[A]): Task[Iterable[A]]

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use replicateZIO

    See also

    See zio.ZIO.replicateM

  39. def replicateM_[A](n: ⇒ Int)(effect: ⇒ Task[A]): Task[Unit]

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use replicateZIODiscard

    See also

    See zio.ZIO.replicateM_

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use someOrFail

    See also

    See zio.ZIO.require

  41. def unlessM(b: ⇒ Task[Boolean]): UnlessZIO[Any, Throwable]

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use unlessZIO

    See also

    See zio.ZIO.unlessM

  42. def whenCaseM[A, B](a: ⇒ Task[A])(pf: PartialFunction[A, Task[B]]): Task[Option[B]]

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use whenCaseZIO

    See also

    See zio.ZIO.whenCaseM

  43. def whenM(b: ⇒ Task[Boolean]): WhenZIO[Any, Throwable]

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use whenZIO

    See also

    See zio.ZIO.whenM

Inherited from TaskPlatformSpecific

Inherited from AnyRef

Inherited from Any

Ungrouped