A CancellationToken is how a caller says "stop". The caller owns a CancellationTokenSource and calls Cancel() or CancelAfter(timeout); your method takes a CancellationToken (usually the last parameter) and passes it on to everything it awaits: Task.Delay(ms, token), HttpClient, Entity Framework queries. A loop that does a lot of work without awaiting calls token.ThrowIfCancellationRequested() as it goes.
Cancellation is reported as an OperationCanceledException (TaskCanceledException is a subclass of it). Catch it only to clean up and rethrow, or when the cancellation is your own, such as a timeout you added. To add a timeout without losing the caller's token, make a linked source: CancellationTokenSource.CreateLinkedTokenSource(token) cancels when either the caller cancels or your own CancelAfter fires.
Cancellation is cooperative: nothing is stopped by force. Code that never looks at the token simply runs to the end, which is why passing it on everywhere matters.
A linked token source adds a timeout while keeping the caller's cancellation.