class Movie::EventEffect(E, S)

Included Modules

Defined in:

movie/persistence/behaviors.cr

Constructors

Instance Method Summary

Instance methods inherited from module Movie::OutboxEffect

outbox : Array(Persistence::OutboxEntry) outbox, then_publish(message_id : String, destination : String, message : T) : self forall T
then_publish(entry : Persistence::OutboxEntry) : self
then_publish

Constructor Detail

def self.new(events : Array(E) = [] of E, operation_id : Persistence::OperationId | Nil = nil, stop : Bool = false) #

[View source]

Instance Method Detail

def callbacks : Array(Proc(S, Nil)) #

[View source]
def events : Array(E) #

[View source]
def operation_id : Persistence::OperationId | Nil #

[View source]
def outbox : Array(Persistence::OutboxEntry) #

[View source]
def stop? #

[View source]
def then_run(&callback : S -> ) : self #

[View source]