Fixes #6100.
This commit is contained in:
parent
7937e38423
commit
52cc925e0e
4 changed files with 25 additions and 4 deletions
|
|
@ -18,8 +18,8 @@ var fs = newFutureStream[int]()
|
|||
|
||||
proc alpha() {.async.} =
|
||||
for i in 0 .. 5:
|
||||
await sleepAsync(1000)
|
||||
await fs.write(i)
|
||||
await sleepAsync(1000)
|
||||
|
||||
echo("Done")
|
||||
fs.complete()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue