ctxerr

package
v0.2024.4 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cause

func Cause(ctx context.Context, err error) error

Cause returns err or ctx.Err depending on if ctx is done. A lot of the bacnet client code returns unhelpful, non-cause errors which make detecting context cancellation difficult. This is being fixed, so if err is a context error, err is returned as-is.

func Is

func Is(err error) bool

Is returns true if err is a context error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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