summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-02-28 01:07:46 +0100
committerGitHub <noreply@github.com>2017-02-28 01:07:46 +0100
commite5fd37375e8a6367f9dce968bf977ddff3ad69f2 (patch)
tree66cdda022c6b7dcb65b576e18df3eaf7386a2483
parent2b0ad99af09a30ee33bbcae8eef8eb32ee7452cf (diff)
parentd5054c3081c0ed7a9d00e1f49917c873be724d8c (diff)
downloadNim-e5fd37375e8a6367f9dce968bf977ddff3ad69f2.tar.gz
Merge pull request #5447 from FedericoCeratto/patch-25
Add note about passing channels between threads.
-rw-r--r--lib/system/channels.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/system/channels.nim b/lib/system/channels.nim
index 4b8b895a5..42096323c 100644
--- a/lib/system/channels.nim
+++ b/lib/system/channels.nim
@@ -13,6 +13,8 @@
 ##
 ## **Note:** The current implementation of message passing is slow and does
 ## not work with cyclic data structures.
+## **Note:** Channels cannot be passed between threads. Use globals or pass
+## them by `ptr`.
 
 when not declared(NimString):
   {.error: "You must not import this module explicitly".}