dispatch_stream_pool(+TimeOut)Wait for maximum of TimeOut for input on any of the streams
in the pool. If there is input, call the Goal associated with
If Goal fails or raises an exception a message is printed. TimeOut
is described with wait_for_input/3.
If Goal is called, there is some input on the
associated stream. Goal must be careful not to block as this
will block the entire pool.1This
is hard to achieve at the moment as none of the Prolog read-commands
provide for a timeout.