I want to be able to do something similar to:
I want to be able to do something similar to:
Is this possible without using polling+sleep?
As a different request, I noticed that it would be nice to register (at thread create time) a callback function that is invoked to handle the result (in parent context) when join is called.
As background context, here is the code I have used: