Function iced_native::subscription::run

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

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

The id will be used to uniquely identify the Subscription.