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

Close event channel on event listener removal. #211

Merged
merged 1 commit into from
Sep 29, 2016

Conversation

timoreimann
Copy link
Collaborator

@timoreimann timoreimann commented Sep 28, 2016

On invocation of RemoveEventsListener, wait for all pending goroutines to complete and close the events channel afterwards. This will enable clients for-looping through the event channel to terminate naturally.

Also merge two tests into one covering all relevant cases.

This PR picks up a left out TODO identified along #198.

@timoreimann timoreimann force-pushed the close-event-channel-on-events-listener-removal branch from 154fa94 to 43f943b Compare September 29, 2016 08:04
On invocation of RemoveEventsListener, wait for all pending goroutines
to complete and close the events channel afterwards. This will enable
clients for-looping through the event channel to terminate naturally.

Also merge two tests into one covering all relevant cases.
@timoreimann timoreimann force-pushed the close-event-channel-on-events-listener-removal branch from 43f943b to aabf416 Compare September 29, 2016 08:53
@timoreimann timoreimann merged commit 8908223 into master Sep 29, 2016
@timoreimann timoreimann deleted the close-event-channel-on-events-listener-removal branch September 29, 2016 09:01
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