|Did you know ...
:- use_module(library(streampool)).(can be autoloaded)
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.