fix macro comment
@@ -302,14 +302,6 @@ use crate::GooseConfiguration;
static APP_USER_AGENT: &str = concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION"));
-/// Async tasks must be boxed and pinned for Goose to store and invoke them.
-#[macro_export]
-macro_rules! taskset {
- ($taskset_func:tt) => {
- GooseTaskSet::new($taskset_func)
- }
-}
-
/// Async tasks must be boxed and pinned for Goose to store and invoke them.
#[macro_export]
macro_rules! task {
@@ -320,6 +312,14 @@ macro_rules! task {
}
}
+/// For consistency, taskset!("foo") expands to GooseTaskSet::new("foo").
+#[macro_export]
+macro_rules! taskset {
+ ($taskset_func:tt) => {
+ GooseTaskSet::new($taskset_func)
+ }
+}
+
/// An individual task set.
#[derive(Clone, Hash)]
pub struct GooseTaskSet {
