RIO

eu.joaocosta.minart.runtime.pure.RIO$
See theRIO companion trait
object RIO extends IOBaseOps[Any]

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
trait IOBaseOps[Any]
class Object
trait Matchable
class Any
Self type
RIO.type

Members list

Concise view

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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

Attributes

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

Attributes

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.

Attributes

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

Attributes

Inherited methods

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

Returns a Poll from a function that receives a callback

Returns a Poll from a function that receives a callback

Attributes

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

Lifts a value into a RIO.

Lifts a value into a RIO.

Attributes

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

Suspends a computation into a RIO.

Suspends a computation into a RIO.

Attributes

Inherited from:
IOBaseOps

Inherited fields

val noop: RIO[Any, Unit]

An operation that does nothing.

An operation that does nothing.

Attributes

Inherited from:
IOBaseOps