Drain returns all pending messages and removes them from the queue. Must not block — if the queue is empty it returns nil.
(ctx context.Context)
| 33 | // Drain returns all pending messages and removes them from the queue. |
| 34 | // Must not block — if the queue is empty it returns nil. |
| 35 | Drain(ctx context.Context) []QueuedMessage |
| 36 | } |
| 37 | |
| 38 | // inMemoryMessageQueue is the default MessageQueue backed by a buffered channel. |
no outgoing calls
no test coverage detected