allow setting a parent scope for a new thread
set the parent scope to the current one
This will preserve local variables.
call Wait() so that the task runs