We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5827927 commit e677c41Copy full SHA for e677c41
lib/system/channels.nim
@@ -60,7 +60,7 @@
60
## createThread(worker1, firstWorker)
61
##
62
## # Block until the message arrives, then print it out.
63
-## echo chan.recv() # "Hello World!"
+## assert chan.recv() == "Hello World!"
64
65
## # Wait for the thread to exit before moving on to the next example.
66
## worker1.joinThread()
@@ -74,7 +74,7 @@
74
## while true:
75
## let tried = chan.tryRecv()
76
## if tried.dataAvailable:
77
-## echo tried.msg # "Another message"
+## assert tried.msg == "Another message"
78
## break
79
80
## echo "Pretend I'm doing useful work..."
@@ -450,4 +450,3 @@ proc ready*[TMsg](c: var Channel[TMsg]): bool =
450
## new messages.
451
var q = cast[PRawChannel](addr(c))
452
result = q.ready
453
-
0 commit comments