First checks if any of the Whens of this ExpectBlock matches against the last output.
First checks if any of the Whens of this ExpectBlock matches against the last output.
If one such When exists then the result of executing it is returned.
Otherwise continuously reads text from process
until one of the Whens of this ExpectBlock matches against it.
If it is not able to do so before the timeout expires a TimeoutException will be thrown inside the Future.
the underlying process of Expect.
the ExecutionContext upon which the internal future is ran.
the result of executing the When that matches either lastOutput
or the text read from process
.
Or a TimeoutException.