Request: Add async `Util.Cache()` method
The Util.Cache()
method is synchronous, including the dataFetcher
factory function.
Could an asynchronous version be added?
Current workaround is to cache an unpopulated serializable object (e.g., dictionary) and populate later.
Comments
An async cache is normally implemented as a synchronous cache of tasks. For example:
I'm not sure what an asynchronous version of Util.Cache would accomplish. Can you explain?
Ah, didn't think to have it return
Task<T>
. That'll work.