0

I'm using nodejs for one of my server applications. But I found out there's some latency while running my app and I found that I didn't use await for a async function. Is there any performance issues while not using await for a async function?

1 Answer 1

1

The async-await is used to simplify the complexities created by nested callbacks. So, both async-await and callback patterns serialize asynchronous processes.

This means that one process fires after the completion of another and, this could be experienced as a latency depending on the application.

So, NO - async-await does not create any latency in its own right.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.