get

open suspend override fun get(key: K): V?

Returns the value corresponding to the given key if it exists or is currently being created, or null otherwise.

The function waits for the creation to complete if it is in progress. If the creation fails, the function returns null. Any unhandled exceptions inside the creation block will be thrown.