Function iced::subscription::run

source ·
pub fn run<I, S, Message>(
    id: I,
    stream: S
) -> Subscription<Hasher, (Event, Status), Message>where
    I: 'static + Hash,
    S: 'static + Stream<Item = Message> + MaybeSend,
    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.