Function cosmic::iced::program::with_subscription
source ยท pub fn with_subscription<P>(
program: P,
f: impl Fn(&<P as Program>::State) -> Subscription<<P as Program>::Message>,
) -> impl Program<State = <P as Program>::State, Message = <P as Program>::Message, Theme = <P as Program>::Theme>where
P: Program,