OpenCyphal / pycyphal

Python implementation of the Cyphal protocol stack.
https://pycyphal.readthedocs.io/
MIT License
117 stars 105 forks source link

Add flush() functionality #339

Open maksimdrachov opened 1 month ago

maksimdrachov commented 1 month ago

When running unit tests, it is useful to have the ability to flush old messages, in order to acquire the most up-to-date ones.

In the example below, it would be useful to flush() after asyncio.sleep():

image