concurrent / org.apache.tuweni.concurrent / AtomicSlotMap / computeAsync

computeAsync

fun computeAsync(fn: Function<in K, AsyncResult<out V>>): AsyncResult<K> (source)

Find a slot and compute a value for it.

Parameters

fn - A function to compute the value for a slot.

Return
A result that will complete with the slot for which the value was computed.