Timeout functionality of wait_for() decorator.