MCPcopy Index your code
hub / github.com/expr-lang/expr / Eventually

Function Eventually

internal/testify/require/require.go:395–403  ·  view source on GitHub ↗

Eventually asserts that given condition will be met in waitFor time, periodically checking target function each tick. assert.Eventually(t, func() bool { return true; }, time.Second, 10*time.Millisecond)

(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

393//
394// assert.Eventually(t, func() bool { return true; }, time.Second, 10*time.Millisecond)
395func Eventually(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) {
396 if h, ok := t.(tHelper); ok {
397 h.Helper()
398 }
399 if assert.Eventually(t, condition, waitFor, tick, msgAndArgs...) {
400 return
401 }
402 t.FailNow()
403}
404
405// EventuallyWithT asserts that given condition will be met in waitFor time,
406// periodically checking target function each tick. In contrast to Eventually,

Callers 1

EventuallyMethod · 0.70

Calls 3

EventuallyFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…