Skip to content

Commit af40f35

Browse files
committed
docs: update Readme
1 parent c4e4c9c commit af40f35

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,17 @@ taskiq_broker.task(
122122
...,
123123
)
124124
```
125+
126+
Also, you can send a multiple message by one task call just using generator message callback with `yield`
127+
128+
```python
129+
async def collect_information_to_send():
130+
"""Sends 10 messages per task call."""
131+
for i in range(10):
132+
yield i
133+
134+
taskiq_broker.task(
135+
message=collect_information_to_send,
136+
...,
137+
)
138+
```

taskiq_faststream/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""FastStream - taskiq integration to schedule FastStream tasks."""
2-
__version__ = "0.1.3"
2+
__version__ = "0.1.4"

0 commit comments

Comments
 (0)