MCPcopy
hub / github.com/ha/doozerd / waitFor

Function waitFor

src/pkg/peer/misc_test.go:40–52  ·  view source on GitHub ↗
(cl *doozer.Conn, path string)

Source from the content-addressed store, hash-verified

38
39
40func waitFor(cl *doozer.Conn, path string) {
41 var rev int64
42 for {
43 ev, err := cl.Wait(path, rev)
44 if err != nil {
45 panic(err)
46 }
47 if ev.IsSet() && len(ev.Body) > 0 {
48 break
49 }
50 rev = ev.Rev + 1
51 }
52}

Callers 2

Calls 2

WaitMethod · 0.80
IsSetMethod · 0.80

Tested by

no test coverage detected