async fn await_reset_signal(
    reset_signal_option: Option<&(RwLock<bool>, Condvar)>
)