This question has a simple subject but I've not been able to find an answer that suits. I've been using Rust for a little while now and have worked with the standard library's channels so have some understanding of them. I've asked this question on StackOverflow but I think I'm not asking the question correctly or I'm just not asking the question in the right place.
I have a program with many threads in it. Thread A needs to send a message to thread B and thread A has nothing setup to be able to do this. My curren pattern to facilitate this is to have a lazy static that contains the
sender for thread B's channel and thread A can clone the sender when required.
Is my current pattern acceptable?
How can this be achieved in Rust?
(please feel free to tell me if my question is not clear enough)