apatheia/tests/tasyncsEx1.nim
Jaremy Creechley 06640c37de
move
2024-02-08 22:10:43 -07:00

22 lines
366 B
Nim

import chronos
import chronos/threadsync
import chronos/unittest2/asynctests
import taskpools
## todo: setup basic async + threadsignal + taskpools example here
##
type
ThreadArg = object
startSig: ThreadSignalPtr
doneSig: ThreadSignalPtr
value: int
suite "async tests":
asyncTest "test":
await sleepAsync(100.milliseconds)
check true