Yes, absolutely. an AskTimeoutException IS-A TimeoutException so as long as you catch TimeoutException it's all the same.