execution

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package execution protects registered workflow and step invocations. Native replay-control panics remain under the runtime's authority.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Protect

func Protect(
	ctx context.Context,
	logger *slog.Logger,
	repanic func(any) bool,
	permanent func(error) error,
	err *error,
)

Protect must be deferred directly. It logs the stack but does not persist it. Accepted control-flow panics propagate unchanged; ordinary panics become errors, optionally marked permanent by the owning public package.

func Repanicker

func Repanicker(runtime any) func(any) bool

Repanicker returns the optional native runtime control-flow hook.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL