We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b176f4 commit e93a144Copy full SHA for e93a144
1 file changed
README.md
@@ -100,12 +100,17 @@ The configuration required by Queue and Topic is similar and will be handled via
100
101
### Accessing a specific topic
102
103
-Topic can be accessed by the core method `get_topic`. This method takes one parameter
+Topic can be accessed by the core method `get_topic`. This method takes two parameters
104
1. topic name (required)
105
+2. callback function where messages will be received
106
107
```python
108
from python_ms_core import Core
-topic = Core.get_topic(topic_name='topicName')
109
+
110
+def callback(instance):
111
+ print(instance.get_messages())
112
113
+topic = Core.get_topic(topic_name='topicName', callback=callback)
114
115
```
116
0 commit comments