mirror of
https://github.com/logos-storage/apatheia.git
synced 2026-01-02 13:03:11 +00:00
docs
This commit is contained in:
parent
dbaebc26fe
commit
ede73f9463
@ -26,6 +26,7 @@ proc destroy*[T](val: SignalQueue[T]) =
|
||||
discard val.signal.close()
|
||||
|
||||
proc newSignalQueue*[T](maxItems: int = 0): SignalQueue[T] {.raises: [ApatheiaSignalErr].} =
|
||||
## Create a signal queue compatible with Chronos async
|
||||
let res = ThreadSignalPtr.new()
|
||||
if res.isErr():
|
||||
raise newException(ApatheiaSignalErr, res.error())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user