Shinigami
Shinigami
CC#
Created by Shinigami on 8/24/2024 in #help
Why does Task 1 prints first instead of Task 3 - Async & Await
Yes sir, thanks you both. I understood it.
46 replies
CC#
Created by Shinigami on 8/24/2024 in #help
Why does Task 1 prints first instead of Task 3 - Async & Await
that's not the case i guess
46 replies
CC#
Created by Shinigami on 8/24/2024 in #help
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
CC#
Created by Shinigami on 8/24/2024 in #help
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
CC#
Created by Shinigami on 8/24/2024 in #help
Why does Task 1 prints first instead of Task 3 - Async & Await
So in essence it all depends on when i await, right?
46 replies
CC#
Created by Shinigami on 8/24/2024 in #help
Why does Task 1 prints first instead of Task 3 - Async & Await
Yeah this doesn't happen sequentially
46 replies
CC#
Created by Shinigami on 8/24/2024 in #help
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
CC#
Created by Shinigami on 8/24/2024 in #help
Why does Task 1 prints first instead of Task 3 - Async & Await
Okay.. but a normal synchronous function does the same too right? Waits untill the function completes... I'm missing the nuance here i guess
46 replies
CC#
Created by Shinigami on 8/24/2024 in #help
Why does Task 1 prints first instead of Task 3 - Async & Await
Why tho? What's the difference awaiting before the 2,3,4 tasks are created and after the tasks are created?
46 replies
CC#
Created by Shinigami on 8/24/2024 in #help
Why does Task 1 prints first instead of Task 3 - Async & Await
I do, i know about promise and stuff but, async await isn't clear so i keep coming back to it.
46 replies
CC#
Created by Shinigami on 8/24/2024 in #help
Why does Task 1 prints first instead of Task 3 - Async & Await
Also if you await the firstTask after creating 2,3,4 tasks then firstTask output is last
46 replies
CC#
Created by Shinigami on 8/24/2024 in #help
Why does Task 1 prints first instead of Task 3 - Async & Await
maybe I'm getting this wrong or something, buttt wouldn't the whole purpose of async is to not stop the code?
46 replies
CC#
Created by Shinigami on 8/24/2024 in #help
Why does Task 1 prints first instead of Task 3 - Async & Await
No, all are separate different tasks
46 replies
CC#
Created by Shinigami on 11/17/2023 in #help
✅ ValidationContext in ASP.NET
I'm glad i had this convo
31 replies
CC#
Created by Shinigami on 11/17/2023 in #help
✅ ValidationContext in ASP.NET
but thanks man! I feel like i really understood this stuff well enough to explain it back to someone
31 replies
CC#
Created by Shinigami on 11/17/2023 in #help
✅ ValidationContext in ASP.NET
ideally they should not be nullable, like i was saying i'm just learning as of now following tutorials and stuff
31 replies
CC#
Created by Shinigami on 11/17/2023 in #help
✅ ValidationContext in ASP.NET
yes, sir. I'm currently learning this but i believe giving 2 different error from 2 properties sounds independent and i think that's how it should be
31 replies
CC#
Created by Shinigami on 11/17/2023 in #help
✅ ValidationContext in ASP.NET
this
31 replies
CC#
Created by Shinigami on 11/17/2023 in #help
✅ ValidationContext in ASP.NET
trying to fetch from date and the validationattribute is on to date property
31 replies
CC#
Created by Shinigami on 11/17/2023 in #help
✅ ValidationContext in ASP.NET
this is the whole code
31 replies