This commit is contained in:
Dominik Picheta 2017-12-22 21:14:27 +00:00
commit 52cc925e0e
4 changed files with 25 additions and 4 deletions

View file

@ -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()