Click here to Skip to main content
15,890,438 members

Comments by msanaei (Top 1 by date)

msanaei 12-Jul-15 5:14am View    
Thanks Albin, but what if busyFunction() was not as simple as a for loop?
for example if the busyFunction() was as following
busyFunction()
{
method1()
method2()
foreach(var x in y)
{
method3()
}
....
}

Should I check (isStop == true), before each line of code or at least before every method call?