How to block a timer while processing the elapsed event?

后端 未结 5 1694
臣服心动
臣服心动 2021-02-13 09:00

I have a timer that needs to not process its elapsed event handler at the same time. But processing one Elapsed event may interfere with others. I implemented the bel

5条回答
  •  梦谈多话
    2021-02-13 09:31

    timer.enabled = false
    

    or

    timer.stop();
    

    and

    timer.enabled = true
    

    or

    timer.start();
    

提交回复
热议问题