Skip to content

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

Draft
austinvazquez wants to merge 1 commit into
docker:mainfrom
austinvazquez:add-queue-write-error-chan
Draft

[WIP]: Add queue write error channel support#39
austinvazquez wants to merge 1 commit into
docker:mainfrom
austinvazquez:add-queue-write-error-chan

Conversation

@austinvazquez
Copy link
Copy Markdown
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.

Signed-off-by: Austin Vazquez <macedonv@amazon.com>
@austinvazquez
Copy link
Copy Markdown
Contributor Author

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

Comment thread queue.go

// 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
Copy Markdown
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