(instance: WorkflowInstance["Service"])
| 854 | * @since 4.0.0 |
| 855 | */ |
| 856 | export const suspend = (instance: WorkflowInstance["Service"]): Effect.Effect<never> => |
| 857 | Effect.interruptible(Effect.callback<never>(() => { |
| 858 | instance.suspended = true |
| 859 | const fiber = Fiber.getCurrent()! |
| 860 | fiber.interruptUnsafe(fiber.id) |
| 861 | })) |
| 862 | |
| 863 | /** |
| 864 | * Captures defects for a workflow and includes them in the result of the workflow or its activities. |
no test coverage detected