LoadingCompletingSharedFlowCache

Alternate version of CompletingSharedFlowCache that uses a single supplier, defined up front, for all calls to get.

See also

Functions

Link copied to clipboard
abstract operator fun get(key: K): CompletingSharedFlow<T>

If the requested key K is not found in the cache when the CompletingSharedFlow returned by get is subscribed to, then the supplier provided to the loading function will be invoked.