lifecycle

package
v0.124.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTimedOut = errors.New("timed out")

ErrTimedOut marks work that exceeded its own time limit. Unlike context.DeadlineExceeded, it is an ordinary failure, not lifecycle cancellation.

Functions

func IsCanceled

func IsCanceled(err error) bool

IsCanceled reports whether err represents explicitly canceled lifecycle work.

func IsCancellation

func IsCancellation(err error) bool

IsCancellation reports whether err represents canceled or timed-out lifecycle work.

func IsTimeout added in v0.124.0

func IsTimeout(err error) bool

IsTimeout reports whether err represents an expired deadline or time limit.

func MarkTimedOut added in v0.124.0

func MarkTimedOut(err error) error

MarkTimedOut marks err as ErrTimedOut without changing its message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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