Next retrieves next message on a stream. If MessagesContext is closed (either stopped or drained), Next will return ErrMsgIteratorClosed error. An optional timeout or context can be provided using NextOpt options. If none are provided, Next will block indefinitely until a message is available, itera
(opts ...NextOpt)
| 39 | // options. If none are provided, Next will block indefinitely until a |
| 40 | // message is available, iterator is closed or a heartbeat error occurs. |
| 41 | Next(opts ...NextOpt) (Msg, error) |
| 42 | |
| 43 | // Stop unsubscribes from the stream and cancels subscription. Calling |
| 44 | // Next after calling Stop will return ErrMsgIteratorClosed error. |
no outgoing calls
no test coverage detected