mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-02 21:53:05 +00:00
cleanup
This commit is contained in:
parent
b90eff2e12
commit
a359edbda9
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user