andThen

open fun andThen(after: TriConsumer<in T1, in T2, in T3>): TriConsumer<T1, T2, T3>

Returns a composed TriConsumer that performs, in sequence, this operation followed by the after operation. If performing either operation throws an exception, it is relayed to the caller of the composed operation. If performing this operation throws an exception, the after operation will not be performed.

Return

a composed TriConsumer that performs in sequence this operation followed by the after operation

Parameters

after

the operation to perform after this operation

Throws

if after is null