Attribute Macro frame_support_procedural::task_weight
source ยท #[task_weight]
Expand description
Allows defining the weight of a task.
This attribute is attached to a function inside an impl
block annotated with
pallet::tasks_experimental
define the weight of a given work
item.
It takes a closure as input, which should return a Weight
value.