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

More publish overloads for binary payloads and SubscribeAllAsync method #146

Closed
wants to merge 5 commits into from

Conversation

mtmk
Copy link
Collaborator

@mtmk mtmk commented Oct 5, 2023

This fixes the issue when byte[], Memory<byte> and ReadOnlyMemory<byte> payloads are passed to publish methods.

Also adds the SubscribeAllAsync() method for convenient enumeration for subscribers.

* Publish binary overloads
* Async enumerable subscriptions
* Fixed js consume default opts
# Conflicts:
#	src/NATS.Client.JetStream/NatsJSConsumer.cs
* Added switcher so we can add more benchmarks
* Added a benchmark comparing pub wait-until-sent option
@mtmk mtmk requested a review from caleblloyd October 5, 2023 12:08
@mtmk mtmk mentioned this pull request Oct 5, 2023
@mtmk
Copy link
Collaborator Author

mtmk commented Oct 5, 2023

Just complicating the API too much for what it offers. They can be implemented as extension methods later by the library or end devs.

@mtmk mtmk closed this Oct 5, 2023
@mtmk mtmk deleted the pub-sub-api-changes branch October 5, 2023 21:01
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