apatheia/tests/tasyncsEx1.nim

22 lines
366 B
Nim
Raw Normal View History

2024-02-08 22:10:43 -07:00
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