Check if the cancel flag is set. Returns true if cancelled, false if not, or throws if handle invalid.
true
false
bool isCancelled(int handle);