android-components / mozilla.components.support.base.observer / Consumable / from

from

fun <T> from(value: T, onConsume: () -> Unit = null): Consumable<T> (source)

Creates a new Consumable wrapping the given value.