Skip to content

module Athena::Contracts::EventDispatcher::StoppableEvent #

An ACTR::EventDispatcher::Event whose processing may be interrupted when the event has been handled.

ACTR::EventDispatcher::Interface implementations MUST check to determine if an ACTR::EventDispatcher::Event is marked as stopped after each listener is called. If it is, then the dispatcher should return immediately without calling any further listeners.

Direct including types

Athena::Contracts::EventDispatcher::Event

Methods#

#propagate? : Bool#

If future listeners should be executed.

#stop_propagation : Nil#

Prevent future listeners from executing once any listener calls #stop_propagation.