python-trio / trio-amqp

Asynchronous messaging for snake people
BSD 3-Clause "New" or "Revised" License
10 stars 7 forks source link

the signature of callbacks for channel.basic_consume() in examples/ are outdated #13

Closed haolian9 closed 2 years ago

haolian9 commented 3 years ago

hi, thanks for the awesome lib. althrough i just found some typos.

according to the latest code, the signature of callback is body, envelope, properties, channel has been removed. and the docstring of basic_consume() says callback is coroutine, which actually is async func.

async def callback():
    pass

type(callback)  # func
type(callback()) # coroutine