Skip to main content

Crate workflow_task_macros

Crate workflow_task_macros 

Source
Expand description

Procedural macros backing the workflow-task crate, providing the task! and set_task! macros for declaring async task closures.

Macros§

set_task
Assigns a task closure to an existing task source by expanding to a set_task_fn call on the given target with the supplied closure.
task
Constructs a workflow_task::Task from a closure or expression, wrapping the closure body so it is boxed and pinned as the task’s async future.