Sets cancellation token for the class.
Note if task has progress handler on it then the progress handler will rule and the cancellation token will do nothing.One or more tasks can subscribe to same token.
Task Class