chore: updates after iced rebase
This commit is contained in:
parent
63cd93bddd
commit
89671a793f
10 changed files with 2367 additions and 2486 deletions
|
|
@ -36,8 +36,7 @@ impl NetworkIcon {
|
|||
pub fn subscription() -> Subscription<Option<&'static str>> {
|
||||
struct NetworkSubscription;
|
||||
|
||||
Subscription::run_with_id(
|
||||
TypeId::of::<NetworkSubscription>(),
|
||||
Subscription::run_with(TypeId::of::<NetworkSubscription>(), |_| {
|
||||
cosmic::iced_futures::stream::channel(16, |mut msg_tx| async move {
|
||||
match handler(&mut msg_tx).await {
|
||||
Ok(()) => {}
|
||||
|
|
@ -52,8 +51,8 @@ pub fn subscription() -> Subscription<Option<&'static str>> {
|
|||
|
||||
//TODO: should we retry on error?
|
||||
futures_util::future::pending().await
|
||||
}),
|
||||
)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
//TODO: use never type?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue