add proper cancellation handling (to asynchronously cancel stuff, if supported) + avoid some deadlocks in weird use-cases
add proper cancellation handling (to asynchronously cancel stuff, if supported) + avoid some deadlocks in weird use-cases

tim42/tools