module Athena::EventDispatcher::StoppableEvent

Overview

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

Defined in:

stoppable_event.cr

Instance Method Summary

Instance Method Detail

def propagate? : Bool #

If future AED::EventListenerType should be executed.


[View source]
def stop_propagation : Nil #

Prevent future AED::EventListenerType from executing once any listener calls #stop_propagation on self.


[View source]