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 - Function<in K, AsyncResult<out V>!>!: A function to compute the value for a slot.

Return
AsyncResult<K>!: A result that will complete with the slot for which the value was computed.