Enables cancellation token support in async query.

I don't think assignments belong in `if` or `return` statements either. But I'm all about artistic license, so whatever floats your boat. :boat: