def handler(message): response = ringbuffer_read_many_codec.decode_response(message) read_count = response["read_count"] next_seq = response["next_seq"] items = response["items"] item_seqs = response["item_seqs"] return ReadResult(read_count, next_seq, items, item_seqs, self._to_object)
def handler(message): return ImmutableLazyDataList( ringbuffer_read_many_codec.decode_response(message)["items"], self._to_object)