pub fn new<'a, C: Context<'a>>(cx: &mut C) -> Self {
        Self {
            state: Arc::new(ChannelState::new(cx)),
            has_ref: true,
        }
    }
/// Creates an unbounded channel for scheduling closures on the JavaScript
/// main thread
Creates an unbounded channel for scheduling closures on the JavaScript
main thread
Creates an unbounded channel for scheduling closures on the JavaScript main thread
pub fn new<'a, C: Context<'a>>(cx: &mut C) -> Self {
        Self {
            state: Arc::new(ChannelState::new(cx)),
            has_ref: true,
        }
    }
pub fn new < ' a , C : Context < ' a > > ( cx : & mut C ) -> Self { Self { state : Arc :: new ( ChannelState :: new ( cx ) ) , has_ref : true , } }
Creates an unbounded channel for scheduling closures on the JavaScript
main thread
Creates an unbounded channel for scheduling closures on the JavaScript main thread
cx
&mut C