Skip to content

Commit

Permalink
Merge pull request #1917 from JonathanLindsey/subscription_channel_Fn…
Browse files Browse the repository at this point in the history
…Once

Make the subscription::channel function take a FnOnce non Sync closure
  • Loading branch information
hecrj committed Jun 16, 2023
2 parents 267dbf3 + fcf9062 commit e7e2b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion futures/src/subscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ where
pub fn channel<I, Fut, Message>(
id: I,
size: usize,
f: impl Fn(mpsc::Sender<Message>) -> Fut + MaybeSend + Sync + 'static,
f: impl FnOnce(mpsc::Sender<Message>) -> Fut + MaybeSend + 'static,
) -> Subscription<Message>
where
I: Hash + 'static,
Expand Down

0 comments on commit e7e2b7b

Please sign in to comment.