NewCoordinatorActor 创建协调器
(engine *ActorEngine)
| 259 | |
| 260 | // NewCoordinatorActor 创建协调器 |
| 261 | func NewCoordinatorActor(engine *ActorEngine) *CoordinatorActor { |
| 262 | return &CoordinatorActor{ |
| 263 | engine: engine, |
| 264 | runningWorkflows: make(map[string]*workflowState), |
| 265 | } |
| 266 | } |
| 267 | |
| 268 | // Receive 处理消息 |
| 269 | func (c *CoordinatorActor) Receive(ctx *actor.Context, msg actor.Message) { |