[android-developers] Re: ThreadPoolExecutor stop tasks onPause
Thanks, it is exactly what I need.
On 4 Лис, 16:06, Streets Of Boston <flyingdutc...@gmail.com> wrote:
> shutDownNow will cancel all the pending tasks and make the Executor
> unavailable for any future task submissions.
> Instead, you'd have to keep track to any Future you have scheduled (the
> value returned by an executor.submit(...) call). Call 'cancel(boolean)' on
> all the Futures that are still outstanding when onPause is being executed
> (note that calling 'cancel(...)' on a Future that has finished is OK; it
> just does nothing).
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home