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