chore(command): future does not need to restrict the message type
This commit is contained in:
parent
e1ee19017c
commit
3f0cc744a1
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ pub fn batch<M>(commands: impl IntoIterator<Item = Command<M>>) -> Command<M> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Yields a command which will run the future on the runtime executor.
|
/// Yields a command which will run the future on the runtime executor.
|
||||||
pub fn future<M: Send + 'static>(future: impl Future<Output = M> + Send + 'static) -> Command<M> {
|
pub fn future<M>(future: impl Future<Output = M> + Send + 'static) -> Command<M> {
|
||||||
Command::single(Action::Future(Box::pin(future)))
|
Command::single(Action::Future(Box::pin(future)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue