Hi , I need some help in below scenerio.
I have 2 task which are running parallel where some operations are going on where 1st Task is completing in 5 min and in 2nd monthd its taking to complete around hrs.
Task.Run ( async()=> { await oneMethod()}) ;
Task.Run ( async()=> { await SecondMethod()}) ;
Now, I just wanna to execute first Task.Run when 2nd task is taking more than 15 min.
how to do that
Udit ChauhanPosted Aug 8, 2023, 8:25 AM
Here , you cancel the 2nd task . But we dont need to cancel the 2nd task , it will go as usual and start the 1st task again.
How to do that
Mohammad HussainPosted Aug 7, 2023, 2:56 PM