Commit 44944c8
committed
test: Add async await long-running process test (ignored)
Add test for awaiting long-running async functions (sum computations
with loops). The test demonstrates the pattern of calling an async
function that iterates through a loop, then using the result.
Currently ignored because the await-then-compute pattern
(`await long_sum(n) + 100`) requires storing intermediate results
to the state machine captures. The value produced in the ready
block after await needs to be accessible in subsequent states.1 parent 25b44af commit 44944c8
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1799 | 1799 | | |
1800 | 1800 | | |
1801 | 1801 | | |
| 1802 | + | |
1802 | 1803 | | |
1803 | 1804 | | |
1804 | 1805 | | |
| |||
1807 | 1808 | | |
1808 | 1809 | | |
1809 | 1810 | | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
1810 | 1815 | | |
1811 | 1816 | | |
1812 | 1817 | | |
| |||
0 commit comments