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()
    
    Run

Prints `FlowVar[Person]`, I hope is what you needed...

Reply via email to