MCPcopy
hub / github.com/caddyserver/certmagic / waitUntil

Function waitUntil

async_test.go:62–71  ·  view source on GitHub ↗
(timeout time.Duration, cond func() bool)

Source from the content-addressed store, hash-verified

60}
61
62func waitUntil(timeout time.Duration, cond func() bool) bool {
63 deadline := time.Now().Add(timeout)
64 for time.Now().Before(deadline) {
65 if cond() {
66 return true
67 }
68 time.Sleep(5 * time.Millisecond)
69 }
70 return cond()
71}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…