Closed Technici4n closed 11 months ago
Generic events are now deprecated for removal, but I didn't want to make this dependent on the capability rework which still uses them and might take a bit of time to land. It's a bit messy to have the casts like in this PR, but they work and we'll be able to clean that up later.
I'm not totally set on removing the ASM handler yet (I need to benchmark more), so I figured I'd already get this out of the way.
isCanceled
andsetCanceled
methods in scope for cancellable events only.IEventBus#post
to return the event itself.GenericEvent
byEvent & IGenericEvent
bound in a few places - this is necessary to ensure that the cancellation check is properly removed for non-cancellable events.canceled
(single L),cancellable
(double L), andcancellation
(double L).isCanceled()
andsetCanceled()
.