阅读背景:

如何实现停止/取消按钮?

来源:互联网 

I have a method processData() that takes a large amount of data and does some work on it. There's a start button that initiates the processing. I need a cancel button that stops the processing wherever it's at. How can I implement something like that? The thing I don't get is how to make the cancel button usable once the processing has started since the rest of the UI is frozen when the function is running.I have a method processData() that takes a larg




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: