threads-docs: add a comment to the spawn article

char-rename
Alexander Iljin 2016-11-01 21:51:37 +03:00 committed by John Benediktsson
parent 6b3c802b13
commit 5cf83f1e5e
1 changed files with 1 additions and 0 deletions

View File

@ -181,6 +181,7 @@ $nl
"A simple thread that adds two numbers:"
{ $code "1 2 [ + . ] 2curry \"Addition thread\" spawn" }
"A thread that counts to 10:"
! Don't use $example below: it won't pass help-lint.
{ $code
"USING: math.parser threads ;"
"[ 10 iota [ number>string write nl yield ] each ] \"test\" spawn drop"