Alternative to Thread.Sleep in C#?

后端 未结 10 2135
半阙折子戏
半阙折子戏 2020-12-19 07:10

I have a code which when run, it executes series of lines in sequence. I would like to add a pause in between.

Currently, I have it like this

//do wo         


        
10条回答
  •  佛祖请我去吃肉
    2020-12-19 07:29

    Have a look Thread.Sleep(300) not working correctly

    Probably you need to use the "Dispatcher". Have a look here as well

提交回复
热议问题