I am currently writing a offset search using binary search and it is quite painful to write. See below for the snippet I wrote just to read one event at a particular offset. Also I am not sure how the thread is managed which makes the processor#stop painful to call. Having a cyclic reference between the processor and the observer is also not clean to write.
I am currently writing a offset search using binary search and it is quite painful to write. See below for the snippet I wrote just to read one event at a particular offset. Also I am not sure how the thread is managed which makes the
processor#stop
painful to call. Having a cyclic reference between the processor and the observer is also not clean to write.