Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UntilSuccess ¶
func UntilSuccess(ctx context.Context, condition ConditionFunc) error
UntilSuccess repeats given condition as long as it returns an error.
Types ¶
type ConditionFunc ¶
type ConditionFunc func() (err error)
ConditionFunc returns nil error if the condition is satisfied, or an error if should be repeated.
Click to show internal directories.
Click to hide internal directories.