Added support for cancelling with a cancellation token
version 1.0.5.0