Blank
Explore posts from serversVVALORANT
•Created by Blank on 11/10/2024 in #community-help
How does Valorant determine latency and packet loss?
Which networking protocols are being used here?
1 replies
✅ Confused about Asynchronous Programming
I have been reading about Asynchronous programming for a long time but the concepts are not going through me.
From what I learnt, one way of calling async tasks is like this:
Okay so I understand this one. A task is started, some other work is done, and then the task is asked to return the result.
But what about this one:
Now how is this different from calling the method synchronously? We called the task and are now waiting for it to finish the next moment.
Also, some articles say that the
await
keyword suspends the execution of the current method and returns the control to the caller. From what I understand, its like:
The 1
will be printed to the console before 2
. But its not the case.
Please explain... 😭54 replies