()
| 111 | } |
| 112 | |
| 113 | func (sm *SessionManager) markReady() { |
| 114 | sm.sessionReadyOnce.Do(func() { close(sm.sessionReady) }) |
| 115 | } |
| 116 | |
| 117 | // WaitReady blocks until at least one session has been attached or created, |
| 118 | // or ctx is cancelled. Returns nil when ready, ctx.Err() on timeout. |
no test coverage detected