mirror of
https://github.com/logos-storage/apatheia.git
synced 2026-01-05 22:43:10 +00:00
move
This commit is contained in:
parent
909e9e2181
commit
06640c37de
@ -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
21
tests/tasyncsEx1.nim
Normal 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user