Skip to content

Ensure we trap close and error channels#11

Open
trevorlinton wants to merge 4 commits intopapertrail:masterfrom
trevorlinton:master
Open

Ensure we trap close and error channels#11
trevorlinton wants to merge 4 commits intopapertrail:masterfrom
trevorlinton:master

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