ContextConsumer

Callback interface used to process an ApplicationContext with the ability to throw a (checked) exception.

Author

Stephane Nicoll

Andy Wilkinson

Since

2.0.0

Parameters

<C>

the application context type

See also

Functions

Link copied to clipboard
abstract fun accept(context: C)
Performs this operation on the supplied context.
Link copied to clipboard
open fun andThen(after: ContextConsumer<in C>): ContextConsumer<C>
Returns a composed ContextConsumer that performs, in sequence, this operation followed by the after operation.