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. wait function should be run with delay because the change of status (SI, SB) is not immediate
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.