Readuntil timeout?

When running external processes/commands from Julia and then waiting for them getting to a particular point in their execution it sometimes happen that they never get there. Is there some simple way to timeout when running readuntil or similar command that is waiting in particular string on the output io from the executing command?