Commit af26f96
committed
docs/stdlib/stream: correct comment in example code about discarded data
In the example code the condition `done & self.stream.valid & ~self.stream.ready`
is not sufficient to cause the payload to be discarded. That is because the done
bit remains high. In case of a very slow stream, the first two quickly arriving
serial transactions will never be lost, even if the first transaction has not
been processed yet, when the second one arrives.
However if a 3rd transaction arrives as well, then the 2nd transaction will be
discarded.1 parent dd1d8d5 commit af26f96
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
| |||
0 commit comments