StoppableEvent
module Athena::EventDispatcher::StoppableEvent
An AED::Event
whose processing may be interrupted when the event has been handled.
AED::EventDispatcherInterface
implementations MUST check to determine if an AED::Event
is marked as stopped after each listener is called. If it is, then the AED::EventListenerType
should
return immediately without calling any further AED::EventListenerType
.
Direct including types
Athena::EventDispatcher::Event
Methods
#propagate? : Bool
: Bool
If future AED::EventListenerType
should be executed.
#stop_propagation : Nil
: Nil
Prevent future AED::EventListenerType
from executing once
any listener calls #stop_propagation
on self
.