Merge branch 'master' into beacon
This commit is contained in:
commit
3f67044977
62 changed files with 713 additions and 780 deletions
|
|
@ -19,8 +19,9 @@ iced_core.workspace = true
|
|||
iced_debug.workspace = true
|
||||
|
||||
iced_futures.workspace = true
|
||||
iced_futures.features = ["thread-pool"]
|
||||
|
||||
raw-window-handle.workspace = true
|
||||
sipper.workspace = true
|
||||
thiserror.workspace = true
|
||||
|
||||
sipper.workspace = true
|
||||
sipper.optional = true
|
||||
|
|
|
|||
|
|
@ -7,8 +7,10 @@ use crate::futures::futures::future::{self, FutureExt};
|
|||
use crate::futures::futures::stream::{self, Stream, StreamExt};
|
||||
use crate::futures::{BoxStream, MaybeSend, boxed_stream};
|
||||
|
||||
use std::convert::Infallible;
|
||||
use std::sync::Arc;
|
||||
|
||||
#[cfg(feature = "sipper")]
|
||||
#[doc(no_inline)]
|
||||
pub use sipper::{Never, Sender, Sipper, Straw, sipper, stream};
|
||||
|
||||
|
|
@ -66,6 +68,7 @@ impl<T> Task<T> {
|
|||
|
||||
/// Creates a [`Task`] that runs the given [`Sipper`] to completion, mapping
|
||||
/// progress with the first closure and the output with the second one.
|
||||
#[cfg(feature = "sipper")]
|
||||
pub fn sip<S>(
|
||||
sipper: S,
|
||||
on_progress: impl FnMut(S::Progress) -> T + MaybeSend + 'static,
|
||||
|
|
@ -430,7 +433,7 @@ where
|
|||
}
|
||||
|
||||
/// Creates a new [`Task`] that executes the given [`Action`] and produces no output.
|
||||
pub fn effect<T>(action: impl Into<Action<Never>>) -> Task<T> {
|
||||
pub fn effect<T>(action: impl Into<Action<Infallible>>) -> Task<T> {
|
||||
let action = action.into();
|
||||
|
||||
Task {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue