Wrap a callback-based async function so repeated calls with the same arguments reuse the result — then do it with promises.
Wrap a callback-based async function so repeated calls with the same arguments reuse the result — then do it with promises.
Opens with the full question.