pub type TaskFn<S> = Arc<dyn Fn(&mut NodeContext<'_, S>) -> Result<(), GraphError> + Send + Sync>;Expand description
Task 节点回调类型别名(向后兼容 NodeContext)。
Aliased Type§
pub struct TaskFn<S> { /* private fields */ }pub type TaskFn<S> = Arc<dyn Fn(&mut NodeContext<'_, S>) -> Result<(), GraphError> + Send + Sync>;Task 节点回调类型别名(向后兼容 NodeContext)。
pub struct TaskFn<S> { /* private fields */ }