Action

final case class Action[F[_], R, E, N, A](run: F[Response[R, E, N, A]])

A monad transformer for Response

Type parameters:
A

output type

E

domain event type

F

effect type

N

notification type

R

rejection type

Companion:
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def as[B](b: B)(using F: Functor[F]): Action[F, R, E, N, B]
def flatMap[R2 >: R, E2 >: E, N2 >: N, B](f: A => Action[F, R2, E2, N2, B])(using M: Monad[F]): Action[F, R2, E2, N2, B]
def map[B](f: A => B)(using F: Functor[F]): Action[F, R, E, N, B]
def publish(ns: N*)(using F: Functor[F]): Action[F, R, E, N, A]

Adds notification without considering decision state

Adds notification without considering decision state

def reset(using F: Functor[F]): Action[F, R, E, N, A]

Clears all notifications so far

Clears all notifications so far

Inherited methods

Inherited from:
Product