diff --git a/src/apatheia/asyncs.nim b/src/apatheia/asyncs.nim deleted file mode 100644 index 503de68..0000000 --- a/src/apatheia/asyncs.nim +++ /dev/null @@ -1,11 +0,0 @@ - -import chronos -import chronos/threadsync -import taskpools - -## todo: setup basic example here -## - -proc test() = - let signal = ThreadSignalPtr.new().tryGet() - diff --git a/tests/tasyncsEx1.nim b/tests/tasyncsEx1.nim new file mode 100644 index 0000000..28fadc1 --- /dev/null +++ b/tests/tasyncsEx1.nim @@ -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 +