Skip to content

CancellableEventBus#addListener might be confusing with the boolean parameter #79

@Jonathing

Description

@Jonathing

The cancellable event bus has custom addListener events to handle listeners that cancel the event. There is one such method: addListener(boolean, Consumer<T>), where true causes the listener to always be cancelled. Even with documentation, I fear that this method may be confusing to those reading the code, and is an unnecessary additional parameter for what is effectively a different method call.

I think this should be replaced with something like addListernerCancelling(Consumer<T>).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions