Partial implementation of awaiter (timeout)