summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-10 17:47:18 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-10 17:47:18 +0100
commit6154395be0668af42ac597c9db35e5e198c264c9 (patch)
tree9c993915b713472622efe7e2825280d1b137c5ef /runtime
parent7ba2e3913395b212c7789569e1d683e7766cc348 (diff)
downloadiced-6154395be0668af42ac597c9db35e5e198c264c9.tar.gz
iced-6154395be0668af42ac597c9db35e5e198c264c9.tar.bz2
iced-6154395be0668af42ac597c9db35e5e198c264c9.zip
Use `sipper::Core` in `Task::sip`
Diffstat (limited to 'runtime')
-rw-r--r--runtime/src/task.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/src/task.rs b/runtime/src/task.rs
index 989f0ed5..bfc36d75 100644
--- a/runtime/src/task.rs
+++ b/runtime/src/task.rs
@@ -61,13 +61,13 @@ 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.
- pub fn sip<S, Output, Progress>(
+ pub fn sip<S>(
sipper: S,
- on_progress: impl Fn(Progress) -> T + MaybeSend + 'static,
- on_output: impl FnOnce(Output) -> T + MaybeSend + 'static,
+ on_progress: impl Fn(S::Progress) -> T + MaybeSend + 'static,
+ on_output: impl FnOnce(<S as Future>::Output) -> T + MaybeSend + 'static,
) -> Self
where
- S: Sipper<Output, Progress> + MaybeSend + 'static,
+ S: sipper::Core + MaybeSend + 'static,
T: MaybeSend + 'static,
{
Self::stream(stream(sipper::sipper(move |sender| async move {