setOnSuccess

abstract fun setOnSuccess(onSuccess: Consumer<T>): EventWaiterBuilder<T>(source)

Sets the consumer called after the event waiter has all its preconditions met and the task has not timeout nor been canceled.

Return

This builder for chaining convenience

Parameters

onSuccess

The success consumer to call