# Async Generator for Every Received MAVlink Message

**URL:** <https://discuss.px4.io/t/async-generator-for-every-received-mavlink-message/38748>\
**Category:** MAVSDK\
**Created:** [May 14, 2024, 9:02pm UTC](https://discuss.px4.io/t/async-generator-for-every-received-mavlink-message/38748 "2024-05-14T21:02:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vvladic](https://discuss.px4.io/user_avatar/discuss.px4.io/vvladic/32/9763_2.png) [@vvladic](https://discuss.px4.io/u/vvladic)\
**Post date:** [May 14, 2024, 9:02pm UTC](https://discuss.px4.io/t/async-generator-for-every-received-mavlink-message/38748/1 "2024-05-14T21:02:51Z")

</div>

Hello everyone,

I was wondering, what would be the best way to get an async generator for every mavlink message received by MAVSDK?  
I could create a task for every async generator there is and push the messages to a queue and yield q.get() in my own async generator, but there must be a better way to do this.

Any ideas?
