concurrent / org.apache.tuweni.concurrent / AtomicSlotMap / compute

compute

fun compute(fn: Function<in K, out V>!): K (source)

Find a slot and compute a value for it.

Parameters

fn - Function<in K, out V>!: A function to compute the value for a slot.

Return
K: The slot for which the value was computed.