Draft of cancellation API using CancellationToken.