Awaits until the specified condition is fulfilled or the timeout is hit.
How long to wait for in milliseconds
The awaited condition