ResultHandler

kyo.core.ResultHandler
abstract class ResultHandler[State, Command[_], E <: Effect[E], Result[_], S]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Handler[Command, E, S]

Members list

Type members

Classlikes

case class Resume[U, S2](st: State, v: U < (E & S & S2))

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Abstract methods

def done[T](st: State, v: T)(using Tag[E]): Result[T] < S
def resume[T, U : Flat, S2](st: State, command: Command[T], k: T => U < (E & S2))(implicit evidence$1: Flat[U], Tag[E]): (Result[U] | Resume[U, S2]) < (S & S2)

Concrete methods

def accepts[T](st: State, command: Command[T]): Boolean
def failed(st: State, ex: Throwable)(using Tag[E]): Nothing < (E & S)