What's the best way in asp.net c# to achieve the following, that does not involve Thread.Sleep()
?
while (runCriteria)
{
...
run some code to display something
...
wait for x seconds
}
I've searched online and everything appears to use incredibly complex (at least to me) async timer events etc., which seems like overkill.