Merge pull request #1917 from JonathanLindsey/subscription_channel_FnOnce
Make the subscription::channel function take a FnOnce non Sync closure
This commit is contained in:
commit
e7e2b7b711
1 changed files with 1 additions and 1 deletions
|
|
@ -417,7 +417,7 @@ where
|
||||||
pub fn channel<I, Fut, Message>(
|
pub fn channel<I, Fut, Message>(
|
||||||
id: I,
|
id: I,
|
||||||
size: usize,
|
size: usize,
|
||||||
f: impl Fn(mpsc::Sender<Message>) -> Fut + MaybeSend + Sync + 'static,
|
f: impl FnOnce(mpsc::Sender<Message>) -> Fut + MaybeSend + 'static,
|
||||||
) -> Subscription<Message>
|
) -> Subscription<Message>
|
||||||
where
|
where
|
||||||
I: Hash + 'static,
|
I: Hash + 'static,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue