nats-io / nats.net.v1

The official C# Client for NATS
Apache License 2.0
646 stars 154 forks source link

Implement PublishAsync #863

Open mrpmorris opened 7 months ago

mrpmorris commented 7 months ago

Proposed change

Publish looks as though it blocks the current thread, is this the case? (If not, I assume it doesn't guarantee the message is received before the thread continues?)

Would it be possible to have an awaitable implementation to improve server performance?

Use case

Concurrency improvement.

Contribution

Yes.

scottf commented 2 months ago

@mrpmorris I'm closing this. You are welcome to submit a PR, although this functionality can already be accomplished by the developer wrapping the current synchronous calls themselves.