Never :) You should never use an asynchronous code when you have an alternative. Otherwise, you would be blocking the program from doing other tasks. Even when you need to execute code in a sequence you can do it with async. I'll write a follow-up post about that.
great post, can you add some situation where we should use synchronous code in stead of asynchronous?
Never :) You should never use an asynchronous code when you have an alternative. Otherwise, you would be blocking the program from doing other tasks. Even when you need to execute code in a sequence you can do it with async. I'll write a follow-up post about that.
thanks for replying 😀