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

Unbounded queues: add a Close() method. #449

Merged
merged 1 commit into from
Feb 12, 2023

Conversation

zenhack
Copy link
Contributor

@zenhack zenhack commented Feb 11, 2023

Found myself wanting this in another project; use cases are similar to closing channels.

Found myself wanting this in another project; use cases are similar to
closing channels.
zenhack added a commit to zenhack/go-websocket-capnp that referenced this pull request Feb 11, 2023
...by using spsc, an unbounded queue, instead of a channel for messages.

This makes use of spsc's .Close() method, introduced in
capnproto/go-capnp#449
@lthibault lthibault merged commit 1613bb0 into capnproto:main Feb 12, 2023
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.

2 participants