Enables cancellation token support in async query.

@AndriySvyryd You should get that checkout out :astonished: