Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SucceedOnce ¶
type SucceedOnce struct {
// contains filtered or unexported fields
}
SucceedOnce is a sync.Once variant that allows for the operation to fail.
func (*SucceedOnce) Do ¶
func (o *SucceedOnce) Do(fn func() error) error
Do executes the fn if and only if it has not been called successfully before.
Click to show internal directories.
Click to hide internal directories.