Allows consumers to cancel the current command.
Return true to kill the current command.
The cancel method is called periodically during long-running commands. You can't always guarantee when it will be called, or how quickly it will cancel the command.
P4Callback Class | P4API Namespace