3 ms·
"instead of caching the actual value, we cached a Promise that will eventually provide the value" I did this exact thing recently in a client-side HTTP caching
by _bxg1 8y ago
"instead of caching the actual value, we cached a Promise that will eventually provide the value"
I did this exact thing recently in a client-side HTTP caching system for frequently-duplicated API requests from within a single page. Cool to see it pop up elsewhere.