poky/bitbake/lib/prserv
Joshua Watt 6c7c9b1146 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: ee090484cc25d760b8c20f18add17b5eff485b40)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d01d684a0f6398270fe35ed59b7d28f3fd9b7e41)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2024-01-10 05:14:16 -10:00
..
__init__.py bitbake: bitbake: Add copyright headers where missing 2022-10-11 21:57:28 +01:00
client.py bitbake: bitbake: Add copyright headers where missing 2022-10-11 21:57:28 +01:00
db.py bitbake: bitbake: Add copyright headers where missing 2022-10-11 21:57:28 +01:00
serv.py bitbake: asyncrpc: Add context manager API 2024-01-10 05:14:16 -10:00