/// Create a `MessageChannel` to propagate state change message to the app.
Create a `MessageChannel` to propagate state change message to the app.
Create a ` MessageChannel ` to propagate state change message to the app .
fn app_message_channel() -> (MessageReceiver, MessageSender) {
    let msg_channel = MessageChannel::new().unwrap();
    let is_queued = Rc::new(RefCell::new(false));
    (
        MessageReceiver {
            port: msg_channel.port2(),
            is_queued: is_queued.clone(),
        },
        MessageSender {
            port: msg_channel.port1(),
            is_queued,
        },
    )
}
fn app_message_channel ( ) -> ( MessageReceiver , MessageSender ) { let msg_channel = MessageChannel :: new ( ) . unwrap ( ) ; let is_queued = Rc :: new ( RefCell :: new ( false ) ) ; ( MessageReceiver { port : msg_channel . port2 ( ) , is_queued : is_queued . clone ( ) , } , MessageSender { port : msg_channel . port1 ( ) , is_queued , } , ) }
Create a `MessageChannel` to propagate state change message to the app.
Create a ` MessageChannel ` to propagate state change message to the app .