referrerpolicy=no-referrer-when-downgrade

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.