RIO

object RIO extends IOBaseOps[Any]
Companion:
class
trait Sum
trait Mirror
trait IOBaseOps[Any]
class Object
trait Matchable
class Any
RIO.type

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def access[R, A](f: R => A): RIO[R, A]

Returns a operation that requires some resource.

Returns a operation that requires some resource.

def foreach[R, A](it: Iterable[A])(f: A => RIO[R, Any]): RIO[R, Unit]

Applies an operation to each element of a Iterable[A] and discards the result.

Applies an operation to each element of a Iterable[A] and discards the result.

def foreach[R, A](it: () => Iterator[A])(f: A => RIO[R, Any]): RIO[R, Unit]

Applies an operation to each element of a Iterator[A] and discards the result.

Applies an operation to each element of a Iterator[A] and discards the result.

def sequence[R, A](it: Iterable[RIO[R, A]]): RIO[R, List[A]]

Converts an Iterable[RIO[R, A]] into a RIO[R, List[A]].

Converts an Iterable[RIO[R, A]] into a RIO[R, List[A]].

def sequence_[R](it: Iterable[RIO[R, Any]]): RIO[R, Unit]

Converts an Iterable[RIO[R, A]] into a RIO[R, Unit].

Converts an Iterable[RIO[R, A]] into a RIO[R, Unit].

def traverse[R, A, B](it: Iterable[A])(f: A => RIO[R, B]): RIO[R, List[B]]

Converts an Iterable[A] into a RIO[R, List[B]] by applying an operation to each element.

Converts an Iterable[A] into a RIO[R, List[B]] by applying an operation to each element.

def when[R](predicate: Boolean)(io: => RIO[R, Unit]): RIO[R, Unit]

Runs a computation only if the predicate is true, otherwise does nothing

Runs a computation only if the predicate is true, otherwise does nothing

Inherited methods

def fromCallback[A](operation: Try[A] => Unit => Unit): RIO[Any, Poll[A]]

Returns a Poll from a function that receives a callback

Returns a Poll from a function that receives a callback

Inherited from:
IOBaseOps
def pure[A](x: A): RIO[Any, A]

Lifts a value into a RIO.

Lifts a value into a RIO.

Inherited from:
IOBaseOps
def suspend[A](x: => A): RIO[Any, A]

Suspends a computation into a RIO.

Suspends a computation into a RIO.

Inherited from:
IOBaseOps

Inherited fields

val noop: RIO[Any, Unit]

An operation that does nothing.

An operation that does nothing.

Inherited from:
IOBaseOps