mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-01 02:42:05 +00:00
18 lines
338 B
Nim
18 lines
338 B
Nim
discard """
|
|
output: '''foobarfoobarbazbearbazbear'''
|
|
cmd: "nimrod $target --threads:on $options $file"
|
|
"""
|
|
|
|
import threadpool
|
|
|
|
proc computeSomething(a, b: string): string = a & b & a & b
|
|
|
|
proc main =
|
|
let fvA = spawn computeSomething("foo", "bar")
|
|
let fvB = spawn computeSomething("baz", "bear")
|
|
|
|
echo(^fvA, ^fvB)
|
|
|
|
main()
|
|
sync()
|