Yet, if you are making an interactive application, that easy to test codepath is a great way to put bugs into your requirements.
There's nothing complicated about it, so there's no reason your code can't implement timeouts and cancellation the same way: timeouts are a cancellation triggered autonomously after some time passes.