Skip to content
This repository has been archived by the owner on Nov 24, 2024. It is now read-only.

Use functional options to New to configure channelqueue #6

Merged
merged 5 commits into from
Nov 24, 2024

Conversation

gammazero
Copy link
Owner

@gammazero gammazero commented Nov 23, 2024

  • 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

- New without options defaults to unbounded
- Add option to specify capacity
- Add option to use existing channel as input chan.
- Add Shutodown function to close and drain channelqueue
- Test for goroutine leaks agter Close or Shutdown
@gammazero gammazero merged commit ece24c7 into main Nov 24, 2024
2 checks passed
@gammazero gammazero deleted the options-for-new branch November 24, 2024 12:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant