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

[WIP]: Add queue write error channel support #39

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

austinvazquez
Copy link
Contributor

@austinvazquez austinvazquez commented Oct 23, 2024

Issue

#36

Description

This change adds a mechanism for returning write errors to users via a read-only channel. This deprecates the previously provided NewQueue events package.

@austinvazquez
Copy link
Contributor Author

@coderbirju, wondering if you could take a look at this wip proof of concept.

@@ -63,26 +89,21 @@ func (eq *Queue) Close() error {
}

// run is the main goroutine to flush events to the target sink.
func (eq *Queue) run() {
func (eq *Queue) run(ctx context.Context) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to hook in context into the goroutine's lifecycle here. Will require a major refactor of this implementation though.

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