Using a Background Worker - Update a ProgressBar on the progress of a Recursive Method

前端 未结 3 1716
栀梦
栀梦 2020-12-10 21:39

Below is a method that I want to ship off into a background worker but I am struggling how to do it based on how created my method. As you can it doesn\'t return anything wh

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-10 22:01

    I would report how far you have gotten since you don't know the goal until you get there. I would do it once per invocation. Perhaps # of files and # of directories seen so far.

提交回复
热议问题