RIO

object RIO
class Object
trait Matchable
class Any
RIO.type

Value members

Concrete methods

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

See bracket zio.ZIO

def bracket[R, A, B](acquire: RIO[R, A], release: A => URIO[R, Any], use: A => RIO[R, B]): RIO[R, B]
See also:

See bracket zio.ZIO

def bracketExit[R, A](acquire: RIO[R, A]): BracketExitAcquire[R, Throwable, A]
See also:

See bracketExit zio.ZIO

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

See bracketExit zio.ZIO

def checkInterruptible[R, A](f: InterruptStatus => RIO[R, A]): RIO[R, A]
def checkTraced[R, A](f: TracingStatus => RIO[R, A]): RIO[R, A]
See also:
def collect[R, A, B, Collection <: (Iterable)](in: Collection[A])(f: A => ZIO[R, Option[Throwable], B])(implicit bf: BuildFrom[Collection[A], B, Collection[B]]): RIO[R, Collection[B]]
See also:
def collectAll[R, A, Collection <: (Iterable)](in: Collection[RIO[R, A]])(implicit bf: BuildFrom[Collection[RIO[R, A]], A, Collection[A]]): RIO[R, Collection[A]]
See also:
def collectAll[R, A](in: Set[RIO[R, A]]): RIO[R, Set[A]]
See also:
def collectAll[R, A : ClassTag](in: Array[RIO[R, A]]): RIO[R, Array[A]]
See also:
def collectAll[R, A](in: Option[RIO[R, A]]): RIO[R, Option[A]]
See also:
def collectAll[R, A](in: NonEmptyChunk[RIO[R, A]]): RIO[R, NonEmptyChunk[A]]
See also:
def collectAllPar[R, A, Collection <: (Iterable)](as: Collection[RIO[R, A]])(implicit bf: BuildFrom[Collection[RIO[R, A]], A, Collection[A]]): RIO[R, Collection[A]]
See also:
def collectAllPar[R, A](as: Set[RIO[R, A]]): RIO[R, Set[A]]
See also:
def collectAllPar[R, A : ClassTag](as: Array[RIO[R, A]]): RIO[R, Array[A]]
See also:
def collectAllPar[R, A](as: NonEmptyChunk[RIO[R, A]]): RIO[R, NonEmptyChunk[A]]
See also:
def collectAllParN[R, A, Collection <: (Iterable)](n: Int)(as: Collection[RIO[R, A]])(implicit bf: BuildFrom[Collection[RIO[R, A]], A, Collection[A]]): RIO[R, Collection[A]]
def collectAllParN_[R, A](n: Int)(as: Iterable[RIO[R, A]]): RIO[R, Unit]
def collectAllPar_[R, A](in: Iterable[RIO[R, A]]): RIO[R, Unit]
See also:
def collectAllSuccesses[R, A, Collection <: (Iterable)](in: Collection[RIO[R, A]])(implicit bf: BuildFrom[Collection[RIO[R, A]], A, Collection[A]]): RIO[R, Collection[A]]
def collectAllSuccessesPar[R, A, Collection <: (Iterable)](as: Collection[RIO[R, A]])(implicit bf: BuildFrom[Collection[RIO[R, A]], A, Collection[A]]): URIO[R, Collection[A]]
def collectAllSuccessesParN[R, A, Collection <: (Iterable)](n: Int)(as: Collection[RIO[R, A]])(implicit bf: BuildFrom[Collection[RIO[R, A]], A, Collection[A]]): URIO[R, Collection[A]]
def collectAllWith[R, A, B, Collection <: (Iterable)](in: Collection[RIO[R, A]])(f: PartialFunction[A, B])(implicit bf: BuildFrom[Collection[RIO[R, A]], B, Collection[B]]): RIO[R, Collection[B]]
def collectAllWithPar[R, A, B, Collection <: (Iterable)](as: Collection[RIO[R, A]])(f: PartialFunction[A, B])(implicit bf: BuildFrom[Collection[RIO[R, A]], B, Collection[B]]): RIO[R, Collection[B]]
def collectAllWithParN[R, A, B, Collection <: (Iterable)](n: Int)(as: Collection[RIO[R, A]])(f: PartialFunction[A, B])(implicit bf: BuildFrom[Collection[RIO[R, A]], B, Collection[B]]): RIO[R, Collection[B]]
def collectAll_[R, A](in: Iterable[RIO[R, A]]): RIO[R, Unit]
See also:
def collectFirst[R, A, B](as: Iterable[A])(f: A => RIO[R, Option[B]]): RIO[R, Option[B]]
See also:
def collectPar[R, A, B, Collection <: (Iterable)](in: Collection[A])(f: A => ZIO[R, Option[Throwable], B])(implicit bf: BuildFrom[Collection[A], B, Collection[B]]): RIO[R, Collection[B]]
See also:
def collectParN[R, A, B, Collection <: (Iterable)](n: Int)(in: Collection[A])(f: A => ZIO[R, Option[Throwable], B])(implicit bf: BuildFrom[Collection[A], B, Collection[B]]): RIO[R, 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[R, A](f: Descriptor => RIO[R, A]): RIO[R, 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[R, A](register: RIO[R, A] => Unit => Any, blockingOn: List[Id]): RIO[R, A]
See also:
def effectAsyncInterrupt[R, A](register: RIO[R, A] => Unit => Either[Canceler[R], RIO[R, A]], blockingOn: List[Id]): RIO[R, A]
def effectAsyncM[R, A](register: RIO[R, A] => Unit => RIO[R, Any]): RIO[R, A]
See also:
def effectAsyncMaybe[R, A](register: RIO[R, A] => Unit => Option[RIO[R, A]], blockingOn: List[Id]): RIO[R, A]
def effectSuspend[R, A](rio: => RIO[R, A]): RIO[R, A]

Returns a lazily constructed effect, whose construction may itself require effects. When no environment is required (i.e., when R == Any) it is conceptually equivalent to flatten(effect(io)).

Returns a lazily constructed effect, whose construction may itself require effects. When no environment is required (i.e., when R == Any) it is conceptually equivalent to flatten(effect(io)).

def effectSuspendTotal[R, A](rio: => RIO[R, A]): RIO[R, A]
def effectSuspendTotalWith[R, A](p: (Platform, Id) => RIO[R, A]): RIO[R, A]
def effectSuspendWith[R, A](p: (Platform, Id) => RIO[R, A]): RIO[R, A]

Returns a lazily constructed effect, whose construction may itself require effects. When no environment is required (i.e., when R == Any) it is conceptually equivalent to flatten(effect(io)).

Returns a lazily constructed effect, whose construction may itself require effects. When no environment is required (i.e., when R == Any) it is conceptually equivalent to flatten(effect(io)).

def effectTotal[A](effect: => A): UIO[A]
See also:
def environment[R]: URIO[R, R]
See also:
def exists[R, A](as: Iterable[A])(f: A => RIO[R, Boolean]): RIO[R, Boolean]
See also:
def fail(error: => Throwable): Task[Nothing]
See also:
def filter[R, A, Collection <: (Iterable)](as: Collection[A])(f: A => RIO[R, Boolean])(implicit bf: BuildFrom[Collection[A], A, Collection[A]]): RIO[R, Collection[A]]
See also:

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

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

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

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

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

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

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

def filterPar[R, A](as: Set[A])(f: A => RIO[R, Boolean]): RIO[R, Set[A]]
See also:
def first[A]: RIO[(A, Any), A]
See also:
def firstSuccessOf[R, A](rio: RIO[R, A], rest: Iterable[RIO[R, A]]): RIO[R, A]
def flatten[R, A](taskr: RIO[R, RIO[R, A]]): RIO[R, A]
See also:
def foldLeft[R, S, A](in: Iterable[A])(zero: S)(f: (S, A) => RIO[R, S]): RIO[R, S]
See also:
def foldRight[R, S, A](in: Iterable[A])(zero: S)(f: (A, S) => RIO[R, S]): RIO[R, S]
See also:
def forall[R, A](as: Iterable[A])(f: A => RIO[R, Boolean]): RIO[R, Boolean]
See also:
def foreach[R, A, B, Collection <: (Iterable)](in: Collection[A])(f: A => RIO[R, B])(implicit bf: BuildFrom[Collection[A], B, Collection[B]]): RIO[R, Collection[B]]
See also:
def foreach[R, A, B](in: Set[A])(f: A => RIO[R, B]): RIO[R, Set[B]]
See also:
def foreach[R, A, B : ClassTag](in: Array[A])(f: A => RIO[R, B]): RIO[R, Array[B]]
See also:
def foreach[R, Key, Key2, Value, Value2](map: Map[Key, Value])(f: (Key, Value) => RIO[R, (Key2, Value2)]): RIO[R, Map[Key2, Value2]]
See also:
def foreach[R, A, B](in: Option[A])(f: A => RIO[R, B]): RIO[R, Option[B]]
See also:
def foreach[R, A, B](in: NonEmptyChunk[A])(f: A => RIO[R, B]): RIO[R, NonEmptyChunk[B]]
See also:
final def foreachExec[R, A, B, Collection <: (Iterable)](as: Collection[A])(exec: ExecutionStrategy)(f: A => RIO[R, B])(implicit bf: BuildFrom[Collection[A], B, Collection[B]]): RIO[R, Collection[B]]
See also:
def foreachPar[R, A, B, Collection <: (Iterable)](as: Collection[A])(fn: A => RIO[R, B])(implicit bf: BuildFrom[Collection[A], B, Collection[B]]): RIO[R, Collection[B]]
See also:
def foreachPar[R, A, B](as: Set[A])(fn: A => RIO[R, B]): RIO[R, Set[B]]
See also:
def foreachPar[R, A, B : ClassTag](as: Array[A])(fn: A => RIO[R, B]): RIO[R, Array[B]]
See also:
def foreachPar[R, Key, Key2, Value, Value2](map: Map[Key, Value])(f: (Key, Value) => RIO[R, (Key2, Value2)]): RIO[R, Map[Key2, Value2]]
See also:
def foreachPar[R, A, B](as: NonEmptyChunk[A])(fn: A => RIO[R, B]): RIO[R, NonEmptyChunk[B]]
See also:
def foreachParN[R, A, B, Collection <: (Iterable)](n: Int)(as: Collection[A])(fn: A => RIO[R, B])(implicit bf: BuildFrom[Collection[A], B, Collection[B]]): RIO[R, Collection[B]]
See also:
def foreachParN_[R, A, B](n: Int)(as: Iterable[A])(f: A => RIO[R, Any]): RIO[R, Unit]
See also:
def foreachPar_[R, A, B](as: Iterable[A])(f: A => RIO[R, Any]): RIO[R, Unit]
See also:
def foreach_[R, A](as: Iterable[A])(f: A => RIO[R, Any]): RIO[R, Unit]
See also:
def forkAll[R, A, Collection <: (Iterable)](as: Collection[RIO[R, A]])(implicit bf: BuildFrom[Collection[RIO[R, A]], A, Collection[A]]): URIO[R, Fiber[Throwable, Collection[A]]]
See also:
def forkAll_[R, A](as: Iterable[RIO[R, A]]): URIO[R, 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[R, A](f: R => A): URIO[R, A]
See also:
def fromFunctionFuture[R, A](f: R => Future[A]): RIO[R, A]
def fromFunctionM[R, A](f: R => Task[A]): RIO[R, A]
See also:
def fromFuture[A](make: ExecutionContext => Future[A]): Task[A]
See also:
def fromTry[A](value: => Try[A]): Task[A]
See also:
def getOrFail[A](v: => Option[A]): Task[A]
See also:
def halt(cause: => Cause[Throwable]): Task[Nothing]
See also:
def haltWith[R](function: () => ZTrace => Cause[Throwable]): RIO[R, Nothing]
See also:
def identity[R]: RIO[R, R]
See also:
def ifM[R](b: RIO[R, Boolean]): IfM[R, Throwable]
See also:
def interruptAs(fiberId: => Id): UIO[Nothing]
See also:
def interruptible[R, A](taskr: RIO[R, A]): RIO[R, A]
See also:
def interruptibleMask[R, A](k: InterruptStatusRestore => RIO[R, A]): RIO[R, A]
def iterate[R, S](initial: S)(cont: S => Boolean)(body: S => RIO[R, S]): RIO[R, S]
See also:
def left[R, A](a: => A): RIO[R, Either[A, Nothing]]
See also:
def lock[R, A](executor: => Executor)(taskr: RIO[R, A]): RIO[R, A]
See also:
def loop[R, A, S](initial: S)(cont: S => Boolean, inc: S => S)(body: S => RIO[R, A]): RIO[R, List[A]]
See also:
def loop_[R, S](initial: S)(cont: S => Boolean, inc: S => S)(body: S => RIO[R, Any]): RIO[R, Unit]
See also:
def mapN[R, A, B, C](rio1: RIO[R, A], rio2: RIO[R, B])(f: (A, B) => C): RIO[R, C]
See also:
def mapN[R, A, B, C, D](rio1: RIO[R, A], rio2: RIO[R, B], rio3: RIO[R, C])(f: (A, B, C) => D): RIO[R, D]
See also:
def mapN[R, A, B, C, D, F](rio1: RIO[R, A], rio2: RIO[R, B], rio3: RIO[R, C], rio4: RIO[R, D])(f: (A, B, C, D) => F): RIO[R, F]
See also:
def mapParN[R, A, B, C](rio1: RIO[R, A], rio2: RIO[R, B])(f: (A, B) => C): RIO[R, C]
See also:
def mapParN[R, A, B, C, D](rio1: RIO[R, A], rio2: RIO[R, B], rio3: RIO[R, C])(f: (A, B, C) => D): RIO[R, D]
See also:
def mapParN[R, A, B, C, D, F](rio1: RIO[R, A], rio2: RIO[R, B], rio3: RIO[R, C], rio4: RIO[R, D])(f: (A, B, C, D) => F): RIO[R, F]
See also:
def memoize[R, A, B](f: A => RIO[R, B]): UIO[A => RIO[R, B]]
See also:
def mergeAll[R, A, B](in: Iterable[RIO[R, A]])(zero: B)(f: (B, A) => B): RIO[R, B]
See also:
def mergeAllPar[R, A, B](in: Iterable[RIO[R, A]])(zero: B)(f: (B, A) => B): RIO[R, B]
See also:
def noneOrFail(o: Option[Throwable]): RIO[Nothing, Unit]
See also:
def noneOrFailWith[O](o: Option[O])(f: O => Throwable): RIO[Nothing, Unit]
def not[R](effect: RIO[R, Boolean]): RIO[R, Boolean]
See also:
def partition[R, A, B](in: Iterable[A])(f: A => RIO[R, B]): RIO[R, (Iterable[Throwable], Iterable[B])]
See also:
def partitionPar[R, A, B](in: Iterable[A])(f: A => RIO[R, B]): RIO[R, (Iterable[Throwable], Iterable[B])]
See also:
def partitionParN[R, A, B](n: Int)(in: Iterable[A])(f: A => RIO[R, B]): RIO[R, (Iterable[Throwable], Iterable[B])]
See also:
def provide[R, A](r: => R): RIO[R, A] => Task[A]
See also:
def raceAll[R, R1 <: R, A](taskr: RIO[R, A], taskrs: Iterable[RIO[R1, A]]): RIO[R1, A]
See also:
def reduceAll[R, R1 <: R, A](a: RIO[R, A], as: Iterable[RIO[R1, A]])(f: (A, A) => A): RIO[R1, A]
See also:
def reduceAllPar[R, R1 <: R, A](a: RIO[R, A], as: Iterable[RIO[R1, A]])(f: (A, A) => A): RIO[R1, A]
See also:
def replicate[R, A](n: Int)(effect: RIO[R, A]): Iterable[RIO[R, A]]
See also:
def replicateM[R, A](n: Int)(effect: RIO[R, A]): RIO[R, Iterable[A]]
See also:
def replicateM_[R, A](n: Int)(effect: RIO[R, A]): RIO[R, Unit]
See also:
def require[A](error: => Throwable): IO[Throwable, Option[A]] => IO[Throwable, A]
See also:
def reserve[R, A, B](reservation: RIO[R, Reservation[R, Throwable, A]])(use: A => RIO[R, B]): RIO[R, B]
See also:
def right[R, B](b: => B): RIO[R, Either[Nothing, B]]
See also:
def runtime[R]: ZIO[R, Nothing, Runtime[R]]
See also:
def second[A]: RIO[(Any, A), A]
See also:
def service[A : Tag]: URIO[Has[A], A]
See also:
See also:
def services[A : Tag, B : Tag]: URIO[Has[A] & Has[B], (A, B)]
See also:
def services[A : Tag, B : Tag, C : Tag]: URIO[Has[A] & Has[B] & Has[C], (A, B, C)]
See also:
def services[A : Tag, B : Tag, C : Tag, D : Tag]: URIO[Has[A] & Has[B] & Has[C] & Has[D], (A, B, C, D)]
See also:
def sleep(duration: => Duration): RIO[Clock, Unit]
See also:
def some[R, A](a: => A): RIO[R, Option[A]]
See also:
def succeed[A](a: => A): UIO[A]
See also:
def swap[A, B]: RIO[(A, B), (B, A)]
See also:
See also:
def traced[R, A](zio: RIO[R, A]): RIO[R, A]
See also:
def uninterruptible[R, A](taskr: RIO[R, A]): RIO[R, A]
def unless[R](b: => Boolean)(zio: => RIO[R, Any]): RIO[R, Unit]
See also:
def unlessM[R](b: RIO[R, Boolean]): UnlessM[R, Throwable]
See also:
def unsandbox[R, A](v: IO[Cause[Throwable], A]): RIO[R, A]
See also:
def untraced[R, A](zio: RIO[R, A]): RIO[R, A]
See also:
def when[R](b: => Boolean)(rio: => RIO[R, Any]): RIO[R, Unit]
See also:
def whenCase[R, A](a: => A)(pf: PartialFunction[A, RIO[R, Any]]): RIO[R, Unit]
See also:
def whenCaseM[R, A](a: RIO[R, A])(pf: PartialFunction[A, RIO[R, Any]]): RIO[R, Unit]
See also:
def whenM[R](b: RIO[R, Boolean]): WhenM[R, Throwable]
See also:

Concrete fields

val fiberId: UIO[Id]
See also:
val infinity: URIO[Clock, Nothing]
val interrupt: UIO[Nothing]
See also:
val never: UIO[Nothing]
See also:
val none: UIO[Option[Nothing]]
See also:
val unit: UIO[Unit]
See also:
See also: