Cancel a pending task by id. Removes the task and re-arms the alarm to the next remaining deadline. A recurring task that cancels its own id from inside its handler stays cancelled — the run that is finishing does not re-insert it. ParametersprotectedcancelSchedule(id):Promise<boolean>
Returns
Promise<boolean>
true if a pending task was removed; false if no task with
that id exists.