This commit is contained in:
Jaremy Creechley 2023-08-28 17:29:38 -07:00 committed by Dmitriy Ryajov
parent b90eff2e12
commit a359edbda9
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4

View File

@ -68,7 +68,9 @@ var
fsDatastore {.threadvar.}: FSDatastore ##\
## TODO: figure out a better way to capture this?
proc newThreadResult*[T](tp: typedesc[T]): Result[TResult[T], ref CatchableError] =
proc newThreadResult*[T](
tp: typedesc[T]
): Result[TResult[T], ref CatchableError] =
let res = newSharedPtr(ThreadResult[T])
let signal = ThreadSignalPtr.new()
if signal.isErr: