pub fn profq_msg(sess: &Session, msg: ProfileQueriesMsg) {
    if let Some(s) = sess.profile_channel.borrow().as_ref() {
        s.send(msg).unwrap()
    } else {
        // Do nothing
    }
}
/// If enabled, send a message to the profile-queries thread
If enabled, send a message to the profile-queries thread
If enabled send a message to the profile - queries thread
pub fn profq_msg(sess: &Session, msg: ProfileQueriesMsg) {
    if let Some(s) = sess.profile_channel.borrow().as_ref() {
        s.send(msg).unwrap()
    } else {
        // Do nothing
    }
}
pub fn profq_msg ( sess : & Session , msg : ProfileQueriesMsg ) { if let Some ( s ) = sess . profile_channel . borrow ( ) . as_ref ( ) { s . send ( msg ) . unwrap ( ) } else { // Do nothing } }
If enabled, send a message to the profile-queries thread
If enabled send a message to the profile - queries thread
sess
&Session
msg
ProfileQueriesMsg
sess
&Session
msg
ProfileQueriesMsg