My brain is not quite functioning at full capacity this early in the morning, but let's say I have something like the following:
const promise = someAsyncFunctionReturningAPromise().then(() => {
cache.delete(promiseKey, promise); // LINE A
});
cache.set(promiseKey, promise); // LINE B
I'm wondering if line A will execute before line B or if I can count on line B running first. It's worth noting that cache.set
is a synchronous method.