MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / WaitForConditionWithOptions

Method WaitForConditionWithOptions

rest/utilities_testing.go:929–931  ·  view source on GitHub ↗
(successFunc func() bool, maxNumAttempts, timeToSleepMs int)

Source from the content-addressed store, hash-verified

927}
928
929func (rt *RestTester) WaitForConditionWithOptions(successFunc func() bool, maxNumAttempts, timeToSleepMs int) error {
930 return WaitForConditionWithOptions(rt.Context(), successFunc, maxNumAttempts, timeToSleepMs)
931}
932
933func WaitForConditionWithOptions(ctx context.Context, successFunc func() bool, maxNumAttempts, timeToSleepMs int) error {
934 waitForSuccess := func() (shouldRetry bool, err error, value interface{}) {

Calls 2

ContextMethod · 0.95