Attribute Macro frame_support::pallet_macros::task_index

source ·
#[task_index]
Expand description

This attribute is attached to a function inside an impl block annoated with pallet::tasks_experimental to define the index of a given work item.

It takes an integer literal as input, which is then used to define the index. This index should be unique for each function in the impl block.


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