Function iced::subscription::run

source ·
pub fn run<S, Message>(builder: fn() -> S) -> Subscription<Message>
where S: Stream<Item = Message> + MaybeSend + 'static, Message: 'static,
Expand description

Returns a Subscription that will call the given function to create and asynchronously run the given [Stream].