WaitForCancellation returns true if cancellation occurred.