(all|any)_of() should be able to handle empty lists and generators
util.any_of() only accept lists with at least one process, because they need a reference to the
env which they get from the first process.
If theses functions were methods of
Environment, we could create the necessary event(s) more easily and without any magic.