package sync
Import Path
github.com/aws/smithy-go/sync (on go.dev)
Dependency Relation
imports one package, and imported by one package
Involved Source Files
error.go
Package-Level Type Names (only one, which is exported)
OnceErr wraps the behavior of recording an error
once and signal on a channel when this has occurred.
Signaling is done by closing of the channel.
Type is safe for concurrent usage.
ch chan struct{}
err error
mu sync.RWMutex
Err acquires a read-lock and returns an
error if one has been set.
ErrorSet returns a channel that will be used to signal
that an error has been set. This channel will be closed
when the error value has been set for OnceErr.
SetError acquires a write-lock and will set
the underlying error value if one has not been set.
func NewOnceErr() *OnceErr
Package-Level Functions (only one, which is exported)
NewOnceErr return a new OnceErr
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)