pub(crate) unsafe fn write<T>( s: &Sender<T>, token: &mut Token, msg: T, ) -> Result<(), T>
Writes a message into the channel.