concurrent / org.apache.tuweni.concurrent / AtomicSlotMap / put

put

@Nullable fun put(slot: K, value: V): V? (source)

Put a value into a specific slot.

Parameters

slot - The slot to put the value in.

value - The value.

Return
The previous value in the slot, if present.