boulder: github.com/letsencrypt/boulder/canceled Index | Files

package canceled

import "github.com/letsencrypt/boulder/canceled"

Index

Package Files

canceled.go

func Is Uses

func Is(err error) bool

Is returns true if err is non-nil and is either context.Canceled, or has a grpc code of Canceled. This is useful because cancelations propagate through gRPC boundaries, and if we choose to treat in-process cancellations a certain way, we usually want to treat cross-process cancellations the same way.

Package canceled imports 3 packages (graph) and is imported by 15 packages. Updated 2018-02-16. Refresh now. Tools for package owners.