Primary returns the primary session (alias for GetCurrent)
()
| 375 | |
| 376 | // Primary returns the primary session (alias for GetCurrent) |
| 377 | func (cm *ConnManager) Primary() *Session { |
| 378 | return cm.GetCurrent() |
| 379 | } |
| 380 | |
| 381 | // WaitForSession waits until a session is available or context is cancelled |
| 382 | func (cm *ConnManager) WaitForSession(ctx context.Context) (*Session, error) { |
no test coverage detected