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. val awaitAllChildren: UIO[Unit]

    Permalink

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

    Permalink

    See also

    See bracket zio.ZIO

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

    Permalink

    See also

    See bracket zio.ZIO

  11. 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

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

    Permalink

    See also

    See bracketExit zio.ZIO

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

    Permalink

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

    Permalink

    See also

    See zio.ZIO.checkTraced

  15. def children: UIO[Iterable[Fiber[Any, Any]]]

    Permalink

    See also

    See zio.ZIO.children

  16. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def collectAll[A](in: Iterable[Task[A]]): Task[List[A]]

    Permalink

    See also

    See zio.ZIO.collectAll

  18. def collectAllPar[A](as: Iterable[Task[A]]): Task[List[A]]

    Permalink

  19. def collectAllParN[A](n: Int)(as: Iterable[Task[A]]): Task[List[A]]

    Permalink

  20. def collectAllSuccesses[A](in: Iterable[Task[A]]): Task[List[A]]

    Permalink

  21. def collectAllSuccessesPar[A](as: Iterable[Task[A]]): Task[List[A]]

    Permalink

  22. def collectAllSuccessesParN[A](n: Int)(as: Iterable[Task[A]]): Task[List[A]]

    Permalink

  23. def collectAllWith[A, B](in: Iterable[Task[A]])(f: PartialFunction[A, B]): Task[List[B]]

    Permalink

  24. def collectAllWithPar[A, B](as: Iterable[Task[A]])(f: PartialFunction[A, B]): Task[List[B]]

    Permalink

  25. def collectAllWithParN[A, B](n: Int)(as: Iterable[Task[A]])(f: PartialFunction[A, B]): Task[List[B]]

    Permalink

  26. def descriptor: UIO[Descriptor]

    Permalink

    See also

    See zio.ZIO.descriptor

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

    Permalink

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

    Permalink

    See also

    See zio.ZIO.die

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

    Permalink

    See also

    See zio.ZIO.dieMessage

  30. def disown(fiber: Fiber[Any, Any]): UIO[Boolean]

    Permalink

    See also

    See zio.ZIO.disown

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

    Permalink

    See also

    See zio.ZIO.done

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

    Permalink

    See also

    See zio.ZIO.effect

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

    Permalink

    See also

    See zio.ZIO.effectAsync

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

    Permalink

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

    Permalink

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

    Permalink

  37. def effectAsyncWithCompletionHandler[T](op: (CompletionHandler[T, Any]) ⇒ Unit): Task[T]

    Permalink
    Definition Classes
    TaskPlatformSpecific
  38. def effectSuspend[A](task: ⇒ Task[A]): Task[A]

    Permalink

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

    Permalink

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

    Permalink

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

    Permalink

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

    Permalink

    See also

    See zio.ZIO.effectTotal

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

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

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

    Permalink

    See also

    See zio.ZIO.fail

  46. val fiberId: UIO[Id]

    Permalink

  47. def filter[A](as: Iterable[A])(f: (A) ⇒ Task[Boolean]): Task[List[A]]

    Permalink

  48. def finalize(): Unit

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

    Permalink

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

    Permalink

    See also

    See zio.ZIO.flatten

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

    Permalink

    See also

    See zio.ZIO.foldLeft

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

    Permalink

    See also

    See zio.ZIO.foldRight

  53. final def foreach[A, B](in: Chunk[A])(f: (A) ⇒ Task[B]): Task[Chunk[B]]

    Permalink

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

    Permalink

  55. def foreach[A, B](in: Iterable[A])(f: (A) ⇒ Task[B]): Task[List[B]]

    Permalink

  56. final def foreachPar[A, B](as: Chunk[A])(fn: (A) ⇒ Task[B]): Task[Chunk[B]]

    Permalink

  57. def foreachPar[A, B](as: Iterable[A])(fn: (A) ⇒ Task[B]): Task[List[B]]

    Permalink

  58. def foreachParN[A, B](n: Int)(as: Iterable[A])(fn: (A) ⇒ Task[B]): Task[List[B]]

    Permalink

    See also

    See zio.ZIO.foreachParN

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

    Permalink

  60. final def foreachPar_[A, B](as: Chunk[A])(f: (A) ⇒ Task[Any]): Task[Unit]

    Permalink

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

    Permalink

  62. final def foreach_[A](as: Chunk[A])(f: (A) ⇒ Task[Any]): Task[Unit]

    Permalink

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

    Permalink

  64. def forkAll[A](as: Iterable[Task[A]]): UIO[Fiber[Throwable, List[A]]]

    Permalink

    See also

    See zio.ZIO.forkAll

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

    Permalink

    See also

    See zio.ZIO.forkAll_

  66. def fromCompletionStage[A](cs: ⇒ CompletionStage[A]): Task[A]

    Permalink
    Definition Classes
    TaskPlatformSpecific
  67. def fromEither[A](v: ⇒ Either[Throwable, A]): Task[A]

    Permalink

    See also

    See zio.ZIO.fromEither

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

    Permalink

    See also

    See zio.ZIO.fromFiber

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

    Permalink

    See also

    See zio.ZIO.fromFiberM

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

    Permalink

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

    Permalink

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

    Permalink

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

    Permalink

    See also

    See zio.ZIO.fromFuture

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

    Permalink

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

    Permalink

    See also

    See zio.ZIO.fromTry

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

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

    Permalink

    See also

    See zio.ZIO.getOrFail

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

    Permalink

    See also

    See zio.ZIO.halt

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

    Permalink

    See also

    See zio.ZIO.haltWith

  80. def hashCode(): Int

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

    Permalink

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

    Permalink

    See also

    zio.ZIO.ifM

  83. val interrupt: UIO[Nothing]

    Permalink

    See also

    See zio.ZIO.interrupt

  84. def interruptAllChildren: UIO[Unit]

    Permalink

    See also

    See [zio.ZIO.interruptAllChildren]

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

    Permalink

    See also

    See zio.ZIO.interruptAs

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

    Permalink

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

    Permalink

  88. final def isInstanceOf[T0]: Boolean

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

    Permalink

    See also

    See zio.ZIO.iterate

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

    Permalink

    See also

    See zio.ZIO.left

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

    Permalink

    See also

    See zio.ZIO.lock

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

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

    Permalink

    See also

    See zio.ZIO.loop_

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

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

    Permalink

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

    Permalink

  97. 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

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

    Permalink

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

    Permalink

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

    Permalink

    See also

    See zio.ZIO.mergeAll

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

    Permalink

    See also

    See zio.ZIO.mergeAllPar

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

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

    Permalink

    See also

    See zio.ZIO.never

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

    Permalink

    See also

    See zio.ZIO.none

  105. final def notify(): Unit

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

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

    Permalink

    See also

    See zio.ZIO.partition

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

    Permalink

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

    Permalink

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

    Permalink

    See also

    See zio.ZIO.raceAll

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

    Permalink

    See also

    See zio.ZIO.reduceAll

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

    Permalink

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

    Permalink

    See also

    See zio.ZIO.replicate

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

    Permalink

    See also

    See zio.ZIO.require

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

    Permalink

    See also

    See zio.ZIO.reserve

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

    Permalink

    See also

    zio.ZIO.right

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

    Permalink

    See also

    See zio.ZIO.runtime

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

    Permalink

    See also

    zio.ZIO.some

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

    Permalink

    See also

    See zio.ZIO.succeed

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

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

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

    Permalink

    See also

    See zio.ZIO.trace

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

    Permalink

    See also

    See zio.ZIO.traced

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

    Permalink

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

    Permalink

  126. val unit: UIO[Unit]

    Permalink

    See also

    See zio.ZIO.unit

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

    Permalink

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

    Permalink

    See also

    See zio.ZIO.untraced

  129. final def wait(): Unit

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

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

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

    Permalink

    See also

    See zio.ZIO.when

  133. def whenCase[R, E, A](a: ⇒ A)(pf: PartialFunction[A, ZIO[R, E, Any]]): ZIO[R, E, Unit]

    Permalink

    See also

    See zio.ZIO.whenCase

  134. def whenCaseM[R, E, A](a: ZIO[R, E, A])(pf: PartialFunction[A, ZIO[R, E, Any]]): ZIO[R, E, Unit]

    Permalink

    See also

    See zio.ZIO.whenCaseM

  135. def whenM(b: Task[Boolean])(task: Task[Any]): Task[Unit]

    Permalink

    See also

    See zio.ZIO.whenM

  136. val yieldNow: UIO[Unit]

    Permalink

    See also

    See zio.ZIO.yieldNow

Deprecated Value Members

  1. def sequence[A](in: Iterable[Task[A]]): Task[List[A]]

    Permalink

    See zio.ZIO.sequence

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) use collectAll

  2. def sequencePar[A](as: Iterable[Task[A]]): Task[List[A]]

    Permalink

    See zio.ZIO.sequencePar

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) use collectAllPar

  3. def sequenceParN[A](n: Int)(as: Iterable[Task[A]]): Task[List[A]]

    Permalink

    See zio.ZIO.sequenceParN

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) use collectAllParN

  4. def traverse[A, B](in: Iterable[A])(f: (A) ⇒ Task[B]): Task[List[B]]

    Permalink

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) use foreach

    See also

    See zio.ZIO.traverse

  5. def traversePar[A, B](as: Iterable[A])(fn: (A) ⇒ Task[B]): Task[List[B]]

    Permalink

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) use foreachPar

    See also

    See zio.ZIO.traversePar

  6. def traverseParN[A, B](n: Int)(as: Iterable[A])(fn: (A) ⇒ Task[B]): Task[List[B]]

    Permalink

    Alias for ZIO.foreachParN

    Alias for ZIO.foreachParN

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) use foreachParN

  7. def traverseParN_[A](n: Int)(as: Iterable[A])(f: (A) ⇒ Task[Any]): Task[Unit]

    Permalink

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) use foreachParN_

    See also

    See zio.ZIO.traverseParN_

  8. def traversePar_[A](as: Iterable[A])(f: (A) ⇒ Task[Any]): Task[Unit]

    Permalink

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) use foreachPar_

    See also

    See zio.ZIO.traversePar_

  9. def traverse_[A](as: Iterable[A])(f: (A) ⇒ Task[Any]): Task[Unit]

    Permalink

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) use foreach_

    See also

    See zio.ZIO.traverse_

Inherited from TaskPlatformSpecific

Inherited from AnyRef

Inherited from Any

Ungrouped