In the documentation of the Go SDK, I see the
defer used to complete a session. But when not using sessions, can I also use
defer to execute a last workflow activity.
Conceptually, I want to execute a cleanup activity no matter the outcome of the previous activities.
defer workflow.ExecuteActivity(ctx, activities.Cleanup, tenant, application)