invoke

suspend fun invoke(plan: Plan, hook: Hook, result: ExecutorResult)

Triggers the appropriate hook based on the executor result.

Parameters

plan

The plan associated with the hook.

hook

The hook to be triggered.

result

The result of the executor's operation.