In environments where the event loop takes longer to return than the timeout interval (this is possible with very short timeout intervals or very long running synchronous functions), it's possible for destroyCacheObj to run before askPrefetch, which creates a situation where askPrefetch will crash (and, at least in my case, take the entire application with it).
In environments where the event loop takes longer to return than the timeout interval (this is possible with very short timeout intervals or very long running synchronous functions), it's possible for
destroyCacheObj
to run beforeaskPrefetch
, which creates a situation whereaskPrefetch
will crash (and, at least in my case, take the entire application with it).