get

abstract operator fun get(key: K, supplier: (K) -> Flow<T>): CompletingSharedFlow<T>(source)

If the requested key K is not found in the cache when the CompletingSharedFlow returned by get is subscribed to, then the supplier function will be invoked. Any errors throw in supplier are thrown as error events within the flow.