Closed nick-waterhouse closed 5 years ago
Thanks @nick-waterhouse . I will make a change to support multiple subsequent subscriptions from a single BinaryIngressStreamable for streams that support Seek, see #47 . Unfortunately I don't see a way to support multiple concurrent subscriptions with the current Stream API.
In the following code I am saving a Streamable to disk, then restoring it such that I can execute queries on it. The first one is fine, but I get an exception with the second.
All I am doing here is issuing a Count query twice. Doing some digging, I found that the position on the Stream is at the end after the first query. If you uncomment the Position manipulation, the second query succeeds.
Is the behaviour I am seeing intended? I feel like this is going to make Streambles backed by on-disk Streams very difficult to use.