Zyrus
Zyrus
CC#
Created by Zyrus on 2/2/2024 in #help
✅ Help Regarding async Method Implementation.
thanks a ton!
11 replies
CC#
Created by Zyrus on 2/2/2024 in #help
✅ Help Regarding async Method Implementation.
yea looks like this is the best option
11 replies
CC#
Created by Zyrus on 2/2/2024 in #help
✅ Help Regarding async Method Implementation.
yes, i meant that i wanted the Task2 in my case to be async, sorry for the misunderstanding.
11 replies
CC#
Created by Zyrus on 2/2/2024 in #help
✅ Help Regarding async Method Implementation.
The loop is one block, and it runs over and over, how can I place something before next iteration? it will also be called before it all starts, no?
11 replies
CC#
Created by Zyrus on 2/2/2024 in #help
✅ Help Regarding async Method Implementation.
Here i Tried writing somethings simple :
static void Main(string[] args)
{

string[] rofiles = File.ReadAllLines(Profiles.txt);

foreach (var Profile in Profiles)
{
BrowserTask1Method(Profile);
Console.WriteLine("Task 1 for " + Profile + " Done!")

//I want to impliment Wait for task 2 of previus loop itteration here

BrowserTask2Method(Profile); //i want this to start runnning independently and continue to Running Task 1 for Next Profile
Console.WriteLine("Task 2 for " + Profile + " Done!")
}


}
static void Main(string[] args)
{

string[] rofiles = File.ReadAllLines(Profiles.txt);

foreach (var Profile in Profiles)
{
BrowserTask1Method(Profile);
Console.WriteLine("Task 1 for " + Profile + " Done!")

//I want to impliment Wait for task 2 of previus loop itteration here

BrowserTask2Method(Profile); //i want this to start runnning independently and continue to Running Task 1 for Next Profile
Console.WriteLine("Task 2 for " + Profile + " Done!")
}


}
11 replies