This repository was archived by the owner on Sep 7, 2023. It is now read-only.
Commit 03bb8f7
Alex Walker
Raise StopIteration when iterating over an already-completed Stream (typedb#185)
## What is the goal of this PR?
Previously, iterating over an already-completed Stream would stall. Now, we instead raise a `StopIteration` error.
## What are the changes implemented in this PR?
Raise StopIteration when iterating over an already-completed Stream1 parent 147ae7f commit 03bb8f7
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| 60 | + | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
| |||
0 commit comments