While a thread is running, either uploading or downloading, you can query it to check on its status to provide the user with feedback (e.g. a progress bar).
当一个线程在运行的时候,不管是上传还是下载,你可以查询进程状态并且给用户一个反馈(例如一个进度条)。
The former renders a progress bar.
前者显示一个进度条。
Then select Add a progress bar.
然后,选择add a progress bar。
A progress bar is not supposed to print one hundred lines just to update its status; generally we like to see a little animation.
一个进度条不应该是打印100行,只是更新它的状态,一般地,我们,想看到一点生机。
It's going to be my sort of simple implementation of a progress bar.
它将是一种我的,简单的执行进度条。
PROFESSOR: So, does anyone have any questions about the set up here, does it make sense what we're looking for the bar to go back once we make some progress.
教授:所以,有人对这套装置,有疑问吗,一旦我们,取得了一些进展,我们看到这个棒又返回来。
应用推荐