From cf2a7f62184e3895577d77b62c03dd2269da674f Mon Sep 17 00:00:00 2001 From: Philipp Doerner Date: Fri, 15 Dec 2023 17:57:28 +0100 Subject: [PATCH] Add some doc links --- threading/channels.nim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/threading/channels.nim b/threading/channels.nim index e343e20..a79df93 100644 --- a/threading/channels.nim +++ b/threading/channels.nim @@ -277,8 +277,9 @@ proc trySend*[T](c: Chan[T], src: sink Isolated[T]): bool {.inline.} = ## Instead returns after an attempt to send a message was made. ## ## .. warning:: Blocking is still possible if another thread uses the blocking - ## version of `send`/`recv` and waits for the data/space to appear in the - ## channel, thus holding the internal lock to channel's buffer. + ## version of the `send proc`_ / `recv proc`_ and waits for the + ## data/space to appear in the channel, thus holding the internal lock to + ## channel's buffer. ## ## Returns `false` if the message was not sent because the number of pending ## messages in the channel exceeded its capacity. @@ -298,8 +299,8 @@ proc tryRecv*[T](c: Chan[T], dst: var T): bool {.inline.} = ## Instead returns after an attempt to receive a message was made. ## ## .. warning:: Blocking is still possible if another thread uses the blocking - ## version of `send`/`recv` and waits for the data/space to appear in the - ## channel, thus holding the internal lock to channel's buffer. + ## version of the `send proc`_ / `recv proc`_ and waits for the data/space to + ## appear in the channel, thus holding the internal lock to channel's buffer. ## ## Returns `false` and does not change `dist` if no message was received. channelReceive(c.d, dst.addr, sizeof(T), false)