* add acyclic pragmas to FlowVar * add testcases
This commit is contained in:
parent
dac5a56d70
commit
2848cdb18a
2 changed files with 12 additions and 3 deletions
|
|
@ -4,7 +4,7 @@ done999 999
|
|||
'''
|
||||
"""
|
||||
|
||||
import threadpool
|
||||
import std/[threadpool, os]
|
||||
|
||||
proc foo(): int = 999
|
||||
|
||||
|
|
@ -17,3 +17,12 @@ proc main =
|
|||
echo "done", f, " ", b
|
||||
|
||||
main()
|
||||
|
||||
# bug #13781
|
||||
proc thread(): string =
|
||||
os.sleep(1000)
|
||||
return "ok"
|
||||
|
||||
var fv = spawn thread()
|
||||
sync()
|
||||
doAssert ^fv == "ok"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue