setInterval(() => {
// do some stuff
}, 1000)
const foo = async () => {
const res = await api_call();
const do_stuff();
}
await foo();
Will the foo
function block the setInterval
when its callback is due to be executed?
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
setInterval(() => {
// do some stuff
}, 1000)
const foo = async () => {
const res = await api_call();
const do_stuff();
}
await foo();
Will the foo
function block the setInterval
when its callback is due to be executed?