Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/faif/python-patterns
/ publish
Method
publish
patterns/behavioral/publish_subscribe.py:35–36 ·
view source on GitHub ↗
(self, msg: str)
Source
from the content-addressed store, hash-verified
33
self.provider = msg_center
34
35
def
publish(self, msg: str) -> None:
36
self.provider.notify(msg)
37
38
39
class
Subscriber:
Callers
2
test_publisher_shall_append_subscription_message_to_queue
Method · 0.95
test_provider_shall_update_affected_subscribers_with_published_subscription
Method · 0.95
Calls
1
notify
Method · 0.45
Tested by
2
test_publisher_shall_append_subscription_message_to_queue
Method · 0.76
test_provider_shall_update_affected_subscribers_with_published_subscription
Method · 0.76