Manage Program Flow - Multithreading

You need to implement cancellation for a long running task. Which object do you pass to the task?

CancellationToken
Boolean isCancelled variable
Volatile
CancellationTokenSource