]> git.ipfire.org Git - thirdparty/qemu.git/commit
python/aqmp: add .empty() method to EventListener
authorJohn Snow <jsnow@redhat.com>
Thu, 23 Sep 2021 00:49:23 +0000 (20:49 -0400)
committerJohn Snow <jsnow@redhat.com>
Tue, 12 Oct 2021 16:22:10 +0000 (12:22 -0400)
commit16cce725ed87e3ed5901c93e61514840c989216a
treede1bd17e5a00b27115166697e27e547fcb4771b0
parent0257209a09793bfaf1b662faad5558e7011e748a
python/aqmp: add .empty() method to EventListener

Synchronous clients may want to know if they're about to block waiting
for an event or not. A method such as this is necessary to implement a
compatible interface for the old QEMUMonitorProtocol using the new async
internals.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 20210923004938.3999963-3-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/aqmp/events.py