UniqueId

value class UniqueId(val value: Long = nextValue.incrementAndGet())

Thread safe, single process 64 bit unique id. Not to be used if unique multi-process id generation is required.

Important: This is a Public Preview API. It may be changed or removed at any time.

Constructors

Link copied to clipboard
fun UniqueId(value: Long = nextValue.incrementAndGet())

Properties

Link copied to clipboard
val value: Long