static <A, E extends Exception> void invokeAll(
		final ThrowingConsumer<? super A, ? extends E> method,
		final Iterable<? extends A> objects
	)
		throws E
	{
		raise(invokeAll0(method, objects));
	}
Invokes the {@code method} on all given {@code objects}, no matter if one
of the method invocations throws an exception. The first exception thrown
is rethrown after invoking the method on the remaining objects, all other
exceptions are swallowed.
{@snippet lang="java":
final var streams = new ArrayList<InputStream>();
streams.add(new FileInputStream(file1));
streams.add(new FileInputStream(file2));
streams.add(new FileInputStream(file3));
// ...
invokeAll(Closeable::close, streams);
}

@param <A> the closeable object type
@param <E> the exception type
@param objects the objects where the methods are called.
@param method the method which is called on the given object.
@throws E the first exception thrown by the one of the method
        invocation.
jenetics/src/main/java/io/jenetics/internal/util/Lifecycle.java