lifecycle

package
v0.133.2 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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