Cancellable
in
This interface is implemented by an Event subclass if and only if it can be cancelled.
The cancellation of an event directly affects whether downstream event handlers
without @handleCancelled
will be called with this event.
Implementations may provide a direct setter for cancellation (typically by using CancellableTrait
)
or implement an alternative logic (such as a function on another data field) for isCancelled()
.
Table of Contents
- isCancelled() : bool
- Returns whether this instance of the event is currently cancelled.
Methods
isCancelled()
Returns whether this instance of the event is currently cancelled.
public
isCancelled() : bool
If it is cancelled, only downstream handlers that declare @handleCancelled
will be called with this event.