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