Attribute Macro frame_support::pallet_macros::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.


Rust-Analyzer users: See the documentation of the Rust item in frame_support::pallet_macros::task_weight.