Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Conversation

@nihiyama
Copy link

@nihiyama nihiyama commented Jan 30, 2022

I think there is logic that I want to determine if it is subscribed and process it.
For example, if I don't have any subscribers, I want to discard or retry the publish.

I didn't know if a publish other than redis would return an int, so I made it the Optional[int] type in the Broadcast class and the int type in the RedisBackend class.

If all the subscribers are disconnected, I want the publish return to be 0, so I'd like to merge this pull request as well.

@alex-oleshkevich
Copy link
Contributor

I think this is out of scope of this library. Other backend may not support returning this value or may return something different. We want to keep API same for all backends.
Thanks for proposition.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants