Commit b2b7e7479384
tarball1 file changed+7-0
@@ -29,6 +29,13 @@ drop. a sent message answers when the sdk send queue has it, delivery shows up
2929
as the timeline item's send state. reads like `rooms`, `members` and `media`3030
go straight to the sdk. the stream only carries state3131
32
+some commands put an event on the stream before they answer. `Open`, `Close`,33
+`OpenThread`, `CloseThread`, `Resync`, `Paginate`, `Logout` and the34
+verification actions all do. the stream is bounded, so a task that drains it35
+and awaits one of those answers deadlocks once it fills. from the draining36
+task, `try_send` the command and drop the `Pending`, the events tell you how it37
+went38
+3239
start a timeline from `TimelineReset`, then apply each `TimelineChanged` whole3340
with `TimelineDiff::try_apply_all`. snapshots are `imbl::Vector`s, re-exported3441
as `macltok::imbl`, so a copy costs nothing. when a batch doesn't fit none of it