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

Function Wait

test/helper_test.go:43–45  ·  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

41
42// Dumb wait program to sync on callbacks, etc... Will timeout
43func Wait(ch chan bool) error {
44 return WaitTime(ch, 5*time.Second)
45}
46
47// Wait for a chan with a timeout.
48func WaitTime(ch chan bool, timeout time.Duration) error {

Callers 15

TestConnClosedCBFunction · 0.70
TestClientTLSConfigFunction · 0.70
TestClientCertificateFunction · 0.70
TestCallbacksOrderFunction · 0.70
TestReconnectErrHandlerFunction · 0.70
TestConnectHandlerFunction · 0.70
TestMaxPendingOutFunction · 0.70
TestErrInReadLoopFunction · 0.70

Calls 1

WaitTimeFunction · 0.70

Tested by

no test coverage detected