mirror of
https://github.com/logos-storage/apatheia.git
synced 2026-01-07 15:33:09 +00:00
22 lines
366 B
Nim
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
|
|
|