Discover Packages
github.com/aws/smithy-go
sync
package
Version:
v1.20.2
Opens a new window with list of versions in this module.
Published: Mar 29, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 11
Opens a new window with list of known importers.
Documentation
Documentation
¶
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.
NewOnceErr return a new OnceErr
Err acquires a read-lock and returns an
error if one has been set.
func (e *OnceErr ) ErrorSet() <-chan struct{}
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.