FirstQueuedAt returns the timestamp of the oldest frame waiting to be sent.
()
| 228 | |
| 229 | // FirstQueuedAt returns the timestamp of the oldest frame waiting to be sent. |
| 230 | func (s *Session) FirstQueuedAt() time.Time { |
| 231 | s.mu.Lock() |
| 232 | defer s.mu.Unlock() |
| 233 | return s.firstQueuedAt |
| 234 | } |
| 235 | |
| 236 | // IsDone reports whether both FIN frames (sent and received) have flowed, |
| 237 | // OR whether we sent our FIN but the peer's FIN never arrived within |