sdk-common / com.tomtom.online.sdk.common.functional / Consumers / executeInOrder

executeInOrder

@NonNull static fun <T : Any!> executeInOrder(@NonNull consumers: MutableList<Consumer1<T>!>): Consumer1<T>

Returns a Consumer1 that will execute each specified consumer in the order they were specified. All the consumers will be executed with the same value.

Parameters

consumers - MutableList<Consumer1<T>!>: list of a consumers that should be executed

Return
Consumer1<T>: consumer