-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement
subscribe_to
Decorator (#252)
Introduces the `subscribe_to` method, providing a decorator-based mechanism for subscribing to topics in the celery-pubsub system, enhancing usability and code organization. --------- Co-authored-by: Samuel GIFFARD <[email protected]>
- Loading branch information
1 parent
f4a40a1
commit f8674b3
Showing
5 changed files
with
116 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
from .pubsub import publish_now, publish, subscribe, unsubscribe | ||
from .pubsub import publish, publish_now, subscribe, subscribe_to, unsubscribe | ||
|
||
__all__ = [ | ||
"publish_now", | ||
"publish", | ||
"subscribe", | ||
"subscribe_to", | ||
"unsubscribe", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters