Function iced::subscription::run

source ·
pub fn run<I, S, Message>(
    id: I,
    stream: S
) -> Subscription<Hasher, (Event, Status), 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.