mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-06 15:43:10 +00:00
tweak docs
This commit is contained in:
parent
4267ddc353
commit
834d0ebd0f
@ -54,11 +54,9 @@ proc threadSafeType*[T: ThreadSafeTypes](tp: typedesc[T]) =
|
||||
proc newThreadResult*[T](
|
||||
tp: typedesc[T]
|
||||
): Future[TResult[T]] {.async.} =
|
||||
## Creates a new TResult including allocating
|
||||
## a new ThreadSignalPtr.
|
||||
## Creates a new TResult including getting
|
||||
## a new ThreadSignalPtr from the pool.
|
||||
##
|
||||
## Since allocating the TSP can fail, this returns
|
||||
## a Result.
|
||||
mixin threadSafeType
|
||||
when not compiles(threadSafeType):
|
||||
{.error: "only thread safe types can be used".}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user