Start reading incoming messages and pass them to on_message
, until it returns
Stop _
.
on_end_of_batch
is called after processing a batch of messages, before waiting for
the file descriptor to become readable again.
Convenience function to wait for the first message and un-bin_prot it.
Async RPC uses this to handle the handshake at the beginning of the message stream.