I want to use multiple threads and receive intermediate calculations of child thread in the parent thread without blocking it. How i can implament this?