simplify setting result on thread cancellation
1 file changed