I’m working on a mailbox login page where I need to ensure that certain functions run in a specific order. First, an asynchronous function, and then a normal synchronous function. than another async function and than another normal.
async > sync > async > sync
However, I’m encountering difficulties ensuring that these functions execute in the desired sequence.
asyncfunc()
.then(sync)
.then(asyncfunc2)
.then(sync2)
.catch((e) => console.error(e));
Aviv Tech is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.