Loader<K, V> typedef

FutureOr<V> Loader (K key)

A function that produces a value for key, for when a Cache needs to populate an entry.

The loader function should either return a value synchronously or a Future which completes with the value asynchronously.

Implementation

typedef FutureOr<V> Loader<K, V>(K key);