Completable

automorph.spi.AsyncEffectSystem.Completable
trait Completable[Effect[_], T]

Externally completable effect.

Type parameters

Effect

effect type

T

effectful value type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def effect: Effect[T]

Effect containing an externally supplied result value or an exception.

Effect containing an externally supplied result value or an exception.

Attributes

Returns

effect containing an externally supplied result value or an exception

def fail(exception: Throwable): Effect[Unit]

Completes the effect with an exception.

Completes the effect with an exception.

Value parameters

exception

exception

Attributes

Returns

nothing

def succeed(value: T): Effect[Unit]

Completes the effect with a result value.

Completes the effect with a result value.

Value parameters

value

result value

Attributes

Returns

nothing