StackExchange.Redis icon indicating copy to clipboard operation
StackExchange.Redis copied to clipboard

Should I call .SubscribeAsync and then .Unsubscribe (not Async)?

Open katatunix opened this issue 1 year ago • 0 comments

This is not an issue but my question about best practices when using this awesome library.

I subscribed to a channel with

var cmq = conn.GetSubscriber().SubscribeAsync(channel)

Then, when my disposable object is disposed, I call cmq.Unsubscribe() not cmq.UnsubscribeAsync().

Is there any problem with that?

katatunix avatar Nov 16 '23 05:11 katatunix