1
0
Fork 0
forked from wry/wry
wry/src/tasks/slow_clients.rs
2022-03-29 14:11:25 +02:00

15 lines
312 B
Rust

use crate::state::State;
use std::rc::Rc;
pub struct SlowClientHandler {
pub state: Rc<State>,
}
impl SlowClientHandler {
pub async fn handle_events(&mut self) {
loop {
let client = self.state.slow_clients.pop().await;
client.check_queue_size().await;
}
}
}