Query cancellation & timeout

some comments on interface explaining the purpose would be nice