summaryrefslogtreecommitdiffstats
path: root/core/src/command.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-18 00:10:40 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-18 00:10:40 +0100
commita803ab240b9b5d1a073454f814229bad9d8bdafc (patch)
tree12b44006dfdcfcc46579be8a43b95b69e60d9668 /core/src/command.rs
parentb2392d28bd7bf968b43cbdb6ce973160a275a681 (diff)
downloadiced-a803ab240b9b5d1a073454f814229bad9d8bdafc.tar.gz
iced-a803ab240b9b5d1a073454f814229bad9d8bdafc.tar.bz2
iced-a803ab240b9b5d1a073454f814229bad9d8bdafc.zip
Rename `Command::attempt` to `Command::perform`
Diffstat (limited to 'core/src/command.rs')
-rw-r--r--core/src/command.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/command.rs b/core/src/command.rs
index ae901bd8..e1c865dd 100644
--- a/core/src/command.rs
+++ b/core/src/command.rs
@@ -11,7 +11,7 @@ impl<T> Command<T> {
}
}
- pub fn attempt<A>(
+ pub fn perform<A>(
future: impl Future<Output = T> + 'static + Send,
f: impl Fn(T) -> A + 'static + Send,
) -> Command<A> {