cancel() Cancels a machine learning task before it completes. Declarationfunc cancel() See AlsoStarting and stopping a taskresume()