This is unreleased documentation for Yew Next version.
For up-to-date documentation, see the latest version on docs.rs.
yew::platform::pinned::mpsc

Function unbounded

pub fn unbounded<T>() -> (UnboundedSender<T>, UnboundedReceiver<T>)
Expand description

Creates an unbounded channel.

The send method on Senders created by this function will always succeed and return immediately as long as the channel is open.

ยงNote

This channel has an infinite buffer and can run out of memory if the channel is not actively drained.