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

channels: Use context in all functions #21

Merged
merged 7 commits into from
Aug 20, 2023
Merged

channels: Use context in all functions #21

merged 7 commits into from
Aug 20, 2023

Conversation

orsinium
Copy link
Member

@orsinium orsinium commented Aug 20, 2023

This is a big rewrite of almost all functions in the channels package. It introduces a new function with C suffix for every function. For example, First and FirstC. This new function accepts a context as the first argument and respects this context in all blocking operations.

Also:

  1. Add golangci-lint config.
  2. Rewrite documentation. The module-level documentation for channels now covers all you need to know.
  3. Add some new functions for channels. EchoC for sure is new, maybe some others too. I didn't keep track >.<

@orsinium orsinium merged commit 3a75f8c into master Aug 20, 2023
6 checks passed
@orsinium orsinium deleted the context branch August 20, 2023 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant