-
.stream()
takes anoffset
parameter, so you can simply pass that:async with conn.stream(offset="...") as stream: async for event in stream.creates(): ...
But because you’d need to also get offsets, you’d need to use a slightly different API:
async with conn.stream(offset="...") as stream: async for event in stream: if isinstance(event, CreateEvent): ... elif isinstance(event, Boundary): # remember this offset somehow ... = event.offset
-
Both are supported; use whichever style you prefer. (I personally don’t use the callback style any more.)
-
Not sure I understand the question…is this simply a repeat of 1?