ZioSystem

automorph.system.ZioSystem
See theZioSystem companion object
final case class ZioSystem[Environment]()(implicit runtime: Runtime[Environment]) extends AsyncEffectSystem[{ type Effect = [A] =>> RIO[Environment, A]; }#<none>]

ZIO effect system plugin using RIO as an effect type.

Type parameters

Environment

ZIO environment type

Value parameters

runtime

runtime system

Attributes

Constructor

Creates a ZIO effect system plugin using RIO as an effect type.

See also
Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait AsyncEffectSystem[{ type Effect = [A] =>> RIO[Environment, A]; }#<none>]
trait EffectSystem[{ type Effect = [A] =>> RIO[Environment, A]; }#<none>]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def completable[T]: RIO[Environment, Completable[{ type Effect = [A] =>> RIO[Environment, A]; }#<none>, T]]

Creates an externally completable effect.

Creates an externally completable effect.

Type parameters

T

effectful value type

Attributes

Returns

completable effect

Definition Classes
override def either[T](effect: => RIO[Environment, T]): RIO[Environment, Either[Throwable, T]]

Creates a new effect by lifting an effect's errors into a value.

Creates a new effect by lifting an effect's errors into a value.

The resulting effect cannot fail.

Type parameters

T

effectful value type

Value parameters

effect

effectful value

Attributes

Returns

effectful error or the original value

Definition Classes
override def evaluate[T](value: => T): RIO[Environment, T]

Lifts a potentially blocking and side-effecting value into a new effect of specified type.

Lifts a potentially blocking and side-effecting value into a new effect of specified type.

Exceptions thrown while computing the value are translated into a failed effect.

Type parameters

T

effectful value type

Value parameters

value

side-effecting value

Attributes

Returns

effect containing the value

Definition Classes
override def failed[T](exception: Throwable): RIO[Environment, T]

Lifts a exception into a failed effect of specified type.

Lifts a exception into a failed effect of specified type.

Type parameters

T

effectful value type

Value parameters

exception

exception

Attributes

Returns

effect containing the exception

Definition Classes
override def flatMap[T, R](effect: RIO[Environment, T])(function: T => RIO[Environment, R]): RIO[Environment, R]

Creates a new effect by applying an effectful function to an effect's value.

Creates a new effect by applying an effectful function to an effect's value.

Type parameters

R

effectful function result type

T

effectful value type

Value parameters

effect

effectful value

function

effectful function applied to the specified effect's value

Attributes

Returns

effect containing the transformed value

Definition Classes
override def runAsync[T](effect: RIO[Environment, T]): Unit

Executes an effect asynchronously without blocking and discard the result.

Executes an effect asynchronously without blocking and discard the result.

Type parameters

T

effectful value type

Value parameters

effect

effectful value

Attributes

Returns

nothing

Definition Classes
override def successful[T](value: T): RIO[Environment, T]

Lifts a value without blocking or side-effects into a successfully completed effect of specified type.

Lifts a value without blocking or side-effects into a successfully completed effect of specified type.

Type parameters

T

effectful value type

Value parameters

value

value

Attributes

Returns

effect containing the value

Definition Classes

Inherited methods

def map[T, R](effect: RIO[Environment, T])(function: T => R): { type Effect = [A] =>> RIO[Environment, A]; }#<none>[R]

Creates a new effect by applying a function to an effect's value.

Creates a new effect by applying a function to an effect's value.

Type parameters

R

function result type

T

effectful value type

Value parameters

effect

effectful value

function

function applied to the specified effect's value

Attributes

Returns

transformed effectful value

Inherited from:
EffectSystem

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Implicits

Implicits

implicit val runtime: Runtime[Environment]