import chronos/[threadsync, asyncloop]
var anotherThread: Thread[ThreadSignalPtr]
var signal = ThreadSignalPtr.new().get
proc take(signal: ThreadSignalPtr) =
await signal.wait()
echo "get signal!"
anotherThread.createThread(take, signal)
.nimble\pkgs2\chronos-4.0.1-aa129e11c762418129fdb42d1119f1f51dea30fc\chronos\osutils.nim(41, 48) Error: ambiguous identifier: 'Result' -- use one of the following: results.Result: Result results.Result: Result
nim -v
Nim Compiler Version 2.1.1 [Windows: amd64]
Compiled at 2024-03-03
Copyright (c) 2006-2024 by Andreas Rumpf
active boot switches: -d:release
Hi! the following code gives me error:
.nimble\pkgs2\chronos-4.0.1-aa129e11c762418129fdb42d1119f1f51dea30fc\chronos\osutils.nim(41, 48) Error: ambiguous identifier: 'Result' -- use one of the following: results.Result: Result results.Result: Result