Skip to content

Commit

Permalink
Fix user guide create channel example to run (#299)
Browse files Browse the repository at this point in the history
Source code example of using a channel in application.rst errors when ran with error: `TypeError: send() takes 1 positional argument but 2 were given`
Updated example to use a keyword argument
  • Loading branch information
Robbie-Palmer authored Apr 27, 2022
1 parent d3317e5 commit f52b783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/userguide/application.rst
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ Use :meth:`~@channel` to create an in-memory communication channel:

@app.timer(1.0)
async def populate():
await channel.send(MyModel(303))
await channel.send(value=MyModel(303))

.. seealso::

Expand Down

0 comments on commit f52b783

Please sign in to comment.