pub fn recv_tagged_msg<F, T>(f: F) -> Option<T>where F: Fn(ThreadId, Option<u32>) -> bool + 'static + Send + Sync, T: Message + 'static,
Returns a tagged message from the thread queue or times out