Re: [PATCH v3 06/25] python/aqmp: add runstate state machine to AsyncProtocol

2021-08-05 Thread John Snow
On Thu, Aug 5, 2021 at 5:02 PM Eric Blake wrote: > On Tue, Aug 03, 2021 at 02:29:22PM -0400, John Snow wrote: > > This serves a few purposes: > > > > 1. Protect interfaces when it's not safe to call them (via @require) > > > > 2. Add an interface by which an async client can determine if the stat

Re: [PATCH v3 06/25] python/aqmp: add runstate state machine to AsyncProtocol

2021-08-05 Thread Eric Blake
On Tue, Aug 03, 2021 at 02:29:22PM -0400, John Snow wrote: > This serves a few purposes: > > 1. Protect interfaces when it's not safe to call them (via @require) > > 2. Add an interface by which an async client can determine if the state > has changed, for the purposes of connection management. >

[PATCH v3 06/25] python/aqmp: add runstate state machine to AsyncProtocol

2021-08-03 Thread John Snow
This serves a few purposes: 1. Protect interfaces when it's not safe to call them (via @require) 2. Add an interface by which an async client can determine if the state has changed, for the purposes of connection management. Signed-off-by: John Snow --- python/qemu/aqmp/__init__.py | 6 +- p