MCPcopy
hub / github.com/nats-io/nats.go / Wait

Function Wait

nats_test.go:51–53  ·  view source on GitHub ↗

Dumb wait program to sync on callbacks, etc... Will timeout

(ch chan bool)

Source from the content-addressed store, hash-verified

49
50// Dumb wait program to sync on callbacks, etc... Will timeout
51func Wait(ch chan bool) error {
52 return WaitTime(ch, 5*time.Second)
53}
54
55func WaitTime(ch chan bool, timeout time.Duration) error {
56 select {

Callers

nothing calls this directly

Calls 1

WaitTimeFunction · 0.70

Tested by

no test coverage detected