onValue

@NonNull
open fun onValue(@NonNull action: Expected.Action<V>): Expected<E, V>

Execute an action if this expected is a value.

Return

this expected, unchanged

Parameters

action

Function handling the case when value is present.