()
| 479 | } |
| 480 | |
| 481 | func (h *HostAPIHandler) taskObserver() (hostAPIObserver, error) { |
| 482 | if h == nil { |
| 483 | return nil, errors.New("extension: host api handler is required") |
| 484 | } |
| 485 | if h.observer == nil { |
| 486 | return nil, errors.New("extension: task observer is not configured") |
| 487 | } |
| 488 | return h.observer, nil |
| 489 | } |
| 490 | |
| 491 | func (h *HostAPIHandler) taskManagerAndActor(ctx context.Context) (hostAPITaskManager, taskpkg.ActorContext, error) { |
| 492 | manager, err := h.taskManager() |
no outgoing calls