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 - K: The slot to put the value in.

value - V: The value.

Return
V?: The previous value in the slot, if present.