Implement Command::run for executing a Stream to completion
This commit is contained in:
parent
133f4da901
commit
3b7d479534
4 changed files with 48 additions and 3 deletions
|
|
@ -736,6 +736,9 @@ pub fn run_command<A, C, E>(
|
|||
command::Action::Future(future) => {
|
||||
runtime.spawn(future);
|
||||
}
|
||||
command::Action::Stream(stream) => {
|
||||
runtime.run(stream);
|
||||
}
|
||||
command::Action::Clipboard(action) => match action {
|
||||
clipboard::Action::Read(tag) => {
|
||||
let message = tag(clipboard.read());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue