For further actions, you may consider blocking this person and/or reporting abuse
Read next
![quantumcybersolution profile image](https://media.dev.to/cdn-cgi/image/width=100,height=100,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1696281%2F74bbb2eb-c28a-4463-9664-bc93b5a4e7f0.png)
Agave Revolutionizing Construction Data Integration and Interoperability
Eric deQuevedo -
![quantumcybersolution profile image](https://media.dev.to/cdn-cgi/image/width=100,height=100,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1696281%2F74bbb2eb-c28a-4463-9664-bc93b5a4e7f0.png)
Exploring the Potential Applications of Quantum Computing in Drug Discovery and Materials Science
Eric deQuevedo -
![dmnchzl profile image](https://media.dev.to/cdn-cgi/image/width=100,height=100,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F241004%2Fe0e0197f-1d57-46e7-85dc-652c77229b9b.jpg)
ESLint x Prettier: The Right Way To Start A JavaScript Project
Damien Chazoule -
![quantumcybersolution profile image](https://media.dev.to/cdn-cgi/image/width=100,height=100,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1696281%2F74bbb2eb-c28a-4463-9664-bc93b5a4e7f0.png)
Exploring the Mysteries of Dark Energy and the Expanding Universe
Eric deQuevedo -
Top comments (4)
for knowing Async you need to know one problem that exists while using computers or may I say programming computers.
The Processors are the fastest thing in the whole computer next to them are Cache and then RAM and then secondary storage. Tasks using secondary storage, calling to another server over the internet, doing something in the database are slow and they are collectively called I/O tasks.
I/O tasks are slow because calling to the server requires a lot of waiting time, storage devices are slow too. BUT JavaScript waits for nobody. That's why ASync Await was made. It's basically like saying "hey JavaScript this function will do some I/O tasks, so wait for the tasks that say you await.
If you understood that then great, see this video for digging more deep youtube.com/watch?v=9YkUCxvaLEk
Huh! my first ELI5 explanation. β’α΄β’
Sync is: saying "Good morning" and waiting for the person to reply.
Async is: writing a post-it saying "Good morning" and leaving on the person's desk.
You expect the response as a post-it in your desk as well.
Similar analogy for computing can be applied. When you want to call a method/function/procedure/endpoint or anything, you call it.
If the processing of that call is done in the same "concurrent unit" (aka process or thread) by the caller and the caller waits for the result to be finished, it's synchronous. Otherwise, it's asynchronous.
Check this post of mine - scheduling-a-task-for-dummies
Also feedback would be much appreciated.
async holds water that usually comes from a4set