The Task Class contains the following methods:
cancel cancels a pending runnable object. schedule schedules a runnable object to run immediately in the global task manager as a lightweight task.