According to document [here](http://developer.android.com/reference/android/os/AsyncTask.html#cancel%28boolean%29)

> 
> Calling this method will result in onCancelled(Object) being invoked on the UI thread after doInBackground(Object[]) returns
> 
> 
> 

However, in my case onCancelled(Object) is called right after I call cancel method. My question: Is the document wrong?