This commit is contained in:
Jaremy Creechley 2024-02-08 22:10:43 -07:00
parent 909e9e2181
commit 06640c37de
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300
2 changed files with 21 additions and 11 deletions

View File

@ -1,11 +0,0 @@
import chronos
import chronos/threadsync
import taskpools
## todo: setup basic example here
##
proc test() =
let signal = ThreadSignalPtr.new().tryGet()

21
tests/tasyncsEx1.nim Normal file
View File

@ -0,0 +1,21 @@
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