tuweni / 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 - A function to compute the value for a slot.

Return
The slot for which the value was computed.