Since a caching mechanism is being used, there should only need to be one call to the getJSON function for each unique set of parameters. Subsequent calls will await on the promise returned by the first call.
Also, the get function does not need to be an asynchronous function since the outer function is using await. This avoids the promise getting unwrapped, re-wrapped, then unwrapped again.
Since a caching mechanism is being used, there should only need to be one call to the getJSON function for each unique set of parameters. Subsequent calls will await on the promise returned by the first call.
Also, the
get
function does not need to be an asynchronous function since the outer function is using await. This avoids the promise getting unwrapped, re-wrapped, then unwrapped again.Timelines