On Fri, Mar 25, 2011 at 10:39 AM, Tobiah <[email protected]> wrote:

> So am I to understand then, that the only thing that will change by calling
> cancel(true) is that I would not have to wait for the entire remaining
> duration of the sleep for the task to end, whereas with cancel(false), the
> sleep would complete before I could check isCancelled() and exit?
>

I believe so, yes. You can easily test this by putting in a massive sleep
period and observing what happens when you cancel() with either true or
false.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to