Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlaylistObserver: support single handler for multiple types #334

Merged
merged 2 commits into from
Sep 9, 2022

Conversation

RocketMan
Copy link
Owner

@RocketMan RocketMan commented Sep 8, 2022

The PlaylistObserver pattern currently requires that a handler be installed for each event type of interest.

This PR extends PlaylistObserver to support use of a single handler for multiple types.

In this way, if the handlers are the same for multiple event types, they can be collapsed into a single handler.

In addition, this PR adds the ability for a handler to terminate iteration.

@RocketMan RocketMan added this to the v2.11.6 milestone Sep 8, 2022
@RocketMan RocketMan merged commit 1623d95 into master Sep 9, 2022
@RocketMan RocketMan deleted the enhance-PlaylistObserver branch September 9, 2022 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant