heartbeat

package
v0.19.921 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithHeartbeat

func WithHeartbeat[T any](ctx context.Context, interval time.Duration, fn func(context.Context) (T, error)) (T, error)

WithHeartbeat starts periodic heartbeating, runs fn, then stops heartbeating. Use this to wrap blocking activity work so Temporal can detect dead workers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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