Background worker while loop

后端 未结 4 1963
渐次进展
渐次进展 2021-01-26 18:29

What i\'m trying to create is a background worker that executes a few processes every 30seconds. But I want this while loop to execute for as long as the program is launched.

4条回答
  •  南方客
    南方客 (楼主)
    2021-01-26 19:01

    I think a Timer from the Threading-Namespace would be much better suited for this. It will tick asynchron, and you can spawn of the process from the Tick-Event.

提交回复
热议问题