ifBound

open fun ifBound(consumer: Consumer<in T>)

Invoke the specified consumer with the bound value, or do nothing if no value has been bound.

Parameters

consumer

block to execute if a value has been bound