MCPcopy Create free account
hub / github.com/astercloud/aster / WithOnStepStart

Function WithOnStepStart

pkg/executionplan/executor.go:29–33  ·  view source on GitHub ↗

WithOnStepStart 设置步骤开始回调

(fn func(plan *ExecutionPlan, step *Step))

Source from the content-addressed store, hash-verified

27
28// WithOnStepStart 设置步骤开始回调
29func WithOnStepStart(fn func(plan *ExecutionPlan, step *Step)) ExecutorOption {
30 return func(e *Executor) {
31 e.onStepStart = fn
32 }
33}
34
35// WithOnStepComplete 设置步骤完成回调
36func WithOnStepComplete(fn func(plan *ExecutionPlan, step *Step)) ExecutorOption {

Callers 3

NewExecutionPlanManagerFunction · 0.92
executionExampleFunction · 0.92

Calls

no outgoing calls

Tested by 1