This repository has been archived by the owner on Nov 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use functional options to
New
to configure channelqueue (#6)
- Calling New without options defaults to unbounded - Add WithCapacity option to specify capacity - Add WithInput option to use existing channel as input channel. - Add WithOutput option to use existing channel as output channel. - Add Shutdown function to close and drain ChannelQueue - Test for goroutine leaks after Close and Shutdown - Allow multiple calls to Close and Shutdown
- Loading branch information
Showing
4 changed files
with
233 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.