parent
7ded490ec0
commit
ff93302f69
1 changed files with 3 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
import asyncdispatch
|
import asyncdispatch
|
||||||
|
import std/unittest
|
||||||
|
|
||||||
proc task() {.async.} =
|
proc task() {.async.} =
|
||||||
await sleepAsync(40)
|
await sleepAsync(40)
|
||||||
|
|
@ -10,6 +11,6 @@ proc main() =
|
||||||
inc(counter)
|
inc(counter)
|
||||||
poll(10)
|
poll(10)
|
||||||
|
|
||||||
doAssert counter <= 4
|
check counter <= 4
|
||||||
|
|
||||||
for i in 0 .. 4: main()
|
for i in 0 .. 10: main()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue