Skip to main content

is_cold

Function is_cold 

Source
pub fn is_cold(last_output_ms: Option<i64>, now_ms: i64, after_ms: i64) -> bool
Expand description

A session is cold when it last wrote output more than after_ms ago. One that has written nothing since it started is not cold: it has no cache to lose, and a message may be what it is waiting for.