Start reading incoming messages and pass them to on_message, until it returns Stop _.
on_message
Stop _
on_end_of_batch is called after processing a batch of messages, before waiting for the file descriptor to become readable again.
on_end_of_batch