Skip to main content

on_task

Attribute Macro on_task 

Source
#[on_task]
Expand description

Marks a method as the task handler (used inside #[malbox::handlers]).

Can also be used standalone — passes through the method unchanged.