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

Ensure we trap close and error channels #11

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

trevorlinton
Copy link

This adds a select case statements to trap error and close channels during the initial read-through of the file (before waiting for changes). If there is an error or a close is requested prior to this block finishing it would cause the caller to block on .Close() or cause parts of the internals here to block when sending to error.

* This adds a select case statements to trap error and close channels during the initial read-through of the file (Before waiting for changes).  If there is an error or a close is requested prior to this block finishing it would cause the caller to block on `.Close()` or cause parts of the internals here to block when sending to error.
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