Improve CPU usage attempt 2

Fixes: https://github.com/sayanarijit/xplr/issues/10
This commit is contained in:
Arijit Basu 2021-04-22 10:03:30 +05:30 committed by Arijit Basu
parent 871a4c79aa
commit 1a08318593

View File

@ -37,7 +37,7 @@ pub fn keep_reading(tx_msg_in: Sender<Task>, rx_event_reader: Receiver<bool>) {
}
}
} else {
thread::sleep(Duration::from_millis(1));
thread::sleep(Duration::from_millis(50));
}
}
});