summary refs log tree commit diff stats
path: root/tinyc/config.texi
Commit message (Expand)AuthorAgeFilesLines
* tiny C support; cosmetic improvements for the docsAraq2010-08-281-0/+1
ision' href='/ahoang/Nim/blame/tests/parallel/tlet_spawn.nim?h=devel&id=1a3b730bf5a2e5978d2dad3d8fb4c157134535e7'>^
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                           
import threadpool

proc foo(): int = 999

# test that the disjoint checker deals with 'a = spawn f(); g = spawn f()':

proc main =
  parallel:
    let f = spawn foo()
    let b = spawn foo()
  echo "done", f, " ", b

main()