mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-06 21:17:48 +00:00
@@ -1,4 +1,5 @@
|
||||
import asyncdispatch
|
||||
import std/unittest
|
||||
|
||||
proc task() {.async.} =
|
||||
await sleepAsync(40)
|
||||
@@ -10,6 +11,6 @@ proc main() =
|
||||
inc(counter)
|
||||
poll(10)
|
||||
|
||||
doAssert counter <= 4
|
||||
check counter <= 4
|
||||
|
||||
for i in 0 .. 4: main()
|
||||
for i in 0 .. 10: main()
|
||||
|
||||
Reference in New Issue
Block a user