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

Expose handler result #63

Merged
merged 1 commit into from
Feb 20, 2024
Merged

Expose handler result #63

merged 1 commit into from
Feb 20, 2024

Conversation

ro0NL
Copy link
Contributor

@ro0NL ro0NL commented Feb 19, 2024

Hi,

We don't run our handlers within Consumer::handle scope, instead we'd like to subscribe, yield N messages to the outside, then unsubscribe.

This is currenly impossible as we dont get the handler result back from process()

This enables doing eg.:

subscribe(fn () => message)
yield process()
unsubscribe()

cc @nekufa

@nekufa nekufa merged commit 0847898 into basis-company:main Feb 20, 2024
6 checks passed
@ro0NL ro0NL deleted the patch-1 branch February 20, 2024 09:49
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