Skip to content

Commit 1d52625

Browse files
committed
add more tests - change overwrite to use send
1 parent 595865d commit 1d52625

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

threading/channels.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
## procs. Send operations add messages to the channel, receiving operations
3232
## remove them.
3333
##
34-
## Overwrite enables a ringbuffer mode where `send` overwrites the oldest message
35-
## if the channel is full.
34+
## Normally, the `send` proc will block if the channel is full. If the `overwrite`
35+
## parameter is set to `true`, the oldest message will be overwritten instead of blocking.
3636
##
3737
## See also:
3838
## * [std/isolation](https://nim-lang.org/docs/isolation.html)

0 commit comments

Comments
 (0)