additional interruption points to hasten shutdown

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-12-22 22:59:43 +00:00 committed by strawberry
commit e5a1309583
4 changed files with 11 additions and 3 deletions

View file

@ -105,7 +105,8 @@ impl Service {
.get(id)
.map(|(_, receiver)| receiver.clone())
.expect("Missing channel for sender worker");
loop {
while !receiver.is_closed() {
tokio::select! {
Some(response) = futures.next() => {
self.handle_response(response, futures, statuses).await;