IsStreaming checks if the stream has been initiated, or when events are buffered which - when processed - will initiate the stream.
()
| 202 | // IsStreaming checks if the stream has been initiated, or |
| 203 | // when events are buffered which - when processed - will initiate the stream. |
| 204 | func (s *EventStream) IsStreaming() bool { |
| 205 | return s.initiated.Load() || len(s.eventsCh) > 0 |
| 206 | } |
| 207 | |
| 208 | // IsConnError checks if an error is related to client disconnection or context cancellation. |
| 209 | func IsConnError(err error) bool { |
no outgoing calls
no test coverage detected