<div dir="ltr">Hi all,<div><br></div><div>My Idea is to have a value returning Thread.</div><div>I'll explain by example.</div><div><pycode></div><div>def foo():</div><div>    time.sleep(20)</div><div>    return 'bar'</div>
<div><br></div><div>value = thread.startValueReturningThread(foo) #i need a better name for the function...)</div><div><br></div><div>#here we do some work</div><div>mg = moonGravity()</div><div>mg.disable()</div><div><br>
</div><div>#now we need the value that foo returned</div><div>print value #this would be blocking untill foo is done!</div><div></pycode></div><div><br></div><div>This feature should provide a way to increase performance when possible with simple syntax.</div>
<div><br></div><div>What do you think?</div></div>