Commit e4a8c0e
committed
🧵 Short-circuit logout state transition
Eventually the states will store small bits of information about each
state on the state objects, e.g: which mailbox was selected or what
caused the logout. So for `logout`, the first attempt wins and
shouldn't be overwritten. For other states, like `selected`, the last
attempt _should_ win.
On the other hand, state transitions should be reworked so that:
* state transitioning commands cannot run simultaneously
* all state transitions are effected _inside_ the receiver thread1 parent 0c919fb commit e4a8c0e
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3811 | 3811 | | |
3812 | 3812 | | |
3813 | 3813 | | |
| 3814 | + | |
3814 | 3815 | | |
| 3816 | + | |
3815 | 3817 | | |
3816 | 3818 | | |
3817 | 3819 | | |
| |||
0 commit comments