From 7011ac1f5406c76403ff9e2cc5c8aae817ba25e7 Mon Sep 17 00:00:00 2001 From: Antonis Geralis Date: Wed, 14 Aug 2024 15:22:32 +0300 Subject: [PATCH] remove warnings --- threading/channels.nim | 9 --------- 1 file changed, 9 deletions(-) diff --git a/threading/channels.nim b/threading/channels.nim index f55cce4..13733e0 100644 --- a/threading/channels.nim +++ b/threading/channels.nim @@ -294,11 +294,6 @@ proc trySend*[T](c: Chan[T], src: var Isolated[T]): bool {.inline.} = ## The memory of `src` is moved, not copied. ## Doesn't block waiting for space in the channel to become available. ## Instead returns after an attempt to send a message was made. - ## - ## .. warning:: Blocking is still possible if another thread uses the blocking - ## 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. @@ -322,10 +317,6 @@ proc tryRecv*[T](c: Chan[T], dst: var T): bool {.inline.} = ## Doesn't block waiting for messages in the channel to become available. ## Instead returns after an attempt to receive a message was made. ## - ## .. warning:: Blocking is still possible if another thread uses the blocking - ## 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)