Created
December 1, 2021 20:39
-
-
Save PavlikPolivka/fe092939c06ed4a18a5407b731a848fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getDataCached('a').then(result => { console.log('first call outer: ' + result); | |
getDataCached('a').then(result => { console.log('first call inner: ' + result); }); | |
}); | |
getDataCached('b').then(result => { console.log('first call outer: ' + result); | |
getDataCached('b').then(result => { console.log('first call inner: ' + result); }); | |
}); | |
getDataCached('a').then(result => { console.log('second call outer: ' + result); | |
getDataCached('a').then(result => { console.log('second call inner: ' + result); }); | |
}); | |
setTimeout(() => { | |
getDataCached('a').then(result => { console.log('later call outer: ' + result); | |
getDataCached('a').then(result => { console.log('later call inner: ' + result); }); | |
}); | |
}, 70000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment