The TaskManager Class contains the following methods:
cancel cancels a pending runnable object. global retrieves the global task manager. run is called when the thread is started. schedule schedules a runnable object to run immediately.