Allow dynamic task cancellation.