fromFuture<Msg, S> static method
Creates a subscription from a future, transforming the future object to a message.
Implementation
static SubItem<Msg> fromFuture<Msg, S>(SubscriptionId id, Future<S> future,
Msg? Function(S) futureObjectToMsg) =>
fromStream(id, future.asStream(), futureObjectToMsg);