Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Allow for custom cancellation interfaces. #29

Closed
Draycia opened this issue May 28, 2021 · 0 comments · Fixed by #30
Closed

Allow for custom cancellation interfaces. #29

Draycia opened this issue May 28, 2021 · 0 comments · Fixed by #30

Comments

@Draycia
Copy link
Contributor

Draycia commented May 28, 2021

In 3.0.0 of Event you were able to override the eventCancelled method to supply your own cancellation logic.

In 5.0.0 with the new EventBus design, this is no longer possible.

One potential idea is to have an EventBus.create overload that accepts a Function2<E, EventSubscriber<? super E, Boolean> for that.

kashike added a commit that referenced this issue May 28, 2021
@kashike kashike mentioned this issue May 28, 2021
kashike added a commit that referenced this issue May 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant