From d5054c3081c0ed7a9d00e1f49917c873be724d8c Mon Sep 17 00:00:00 2001 From: Federico Ceratto Date: Mon, 27 Feb 2017 21:44:44 +0000 Subject: [PATCH] Add note about passing channels between threads. --- lib/system/channels.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/system/channels.nim b/lib/system/channels.nim index 4b8b895a5c..42096323c7 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".}