import threadpool
type
Person = ref object
name: string
age: int
proc worker(): Person =
return Person(name: "john", age: 42)
proc main() =
for i in 0 .. 10:
var t = spawn worker()
echo type(t)
sync()
main()
RunPrints `FlowVar[Person]`, I hope is what you needed...
