elizarov
try { withTimeout(timeout) { myOperation() } } catch(e: CancellationnException) { doSomethingOnTimeout() }