saker.util Documentation TaskDoc JavaDoc Packages
public interface ThreadUtils.ThrowingContextConsumer<T, C>
Functional interface similar to ThrowingConsumer that can take an another context argument for its execution.

A context variable is something that is instantiated once for multiple calls of a consumer.

TThe type of the argument that this consumer works on.
CThe type of the context object.
Methods
public void
accept(T value, C context)
Executes the action for the given argument and context object.
public abstract void accept(T value, C context) throws Exception
Executes the action for the given argument and context object.
valueThe argument.
contextThe context object.
ExceptionIn case of failure.