id

open override val id: suspend () -> String

The suspend function that returns the device identifier.

It first checks if the value is already cached. If so, it returns the cached value immediately (the "fast path"). If not, it acquires a lock, double-checks if another coroutine has already computed the value while it was waiting, and then computes and caches the value if it's still null.