Shinigami
Why does Task 1 prints first instead of Task 3 - Async & Await
So I thought since it's async, if i await and then create other tasks the task would wait for 10 secs but the rest of the tasks (2,3,4) would get created and waited at the same time...
46 replies
Why does Task 1 prints first instead of Task 3 - Async & Await
Okayyyy! I kinda get it. So, in the beginning all I have is 1st task and that will wait for x secs.
So it WILL wait for 10 secs if i create other tasks AFTER the await. But if i create all tasks and await all tasks at the same time then it will depend on which tasks finishes first...
46 replies
Why does Task 1 prints first instead of Task 3 - Async & Await
I kinda do and i kinda don't.. the first task suspends for 10sec, i got it.. but what about the 2nd, 3rd and 4th task? When I'm awaiting those 3 tasks why don't I receive output sequentially?
46 replies