diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2023-11-03 08:26:21 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-09 17:33:02 +0000 |
commit | 732ff20cf9d438537129612124a82b7789881c97 (patch) | |
tree | 157dfc1450df3f29e0d90fcdeeb16614d9cdf957 /bitbake/lib/hashserv | |
parent | 2484bd893189bc24ac210edf2de3b7e1115eebd3 (diff) | |
download | poky-732ff20cf9d438537129612124a82b7789881c97.tar.gz |
bitbake: asyncrpc: Add context manager API
Adds context manager API for the asyncrcp client class which allow
writing code that will automatically close the connection like so:
with hashserv.create_client(address) as client:
...
Rework the bitbake-hashclient tool and PR server to use this new API to
fix warnings about unclosed event loops when exiting
(Bitbake rev: d01d684a0f6398270fe35ed59b7d28f3fd9b7e41)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/hashserv')
0 files changed, 0 insertions, 0 deletions