Skip to main content

Crate taskflow_macros

Crate taskflow_macros 

Source

Attribute Macrosยง

async_task
Async counterpart of sync_task. The run method must be async fn and all the rules about parameters (shared references, optional leading ctx: &FlowContext) are identical.
sync_task
Turn an inherent impl Block { fn run(...) -> ... } into a SyncTask/AsyncTask trait implementation for the taskflow scheduler.