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 ¶
IsCanceled reports whether err represents explicitly canceled lifecycle work.
func IsCancellation ¶
IsCancellation reports whether err represents canceled or timed-out lifecycle work.
func IsTimeout ¶ added in v0.124.0
IsTimeout reports whether err represents an expired deadline or time limit.
func MarkTimedOut ¶ added in v0.124.0
MarkTimedOut marks err as ErrTimedOut without changing its message.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.