You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: library/src/com/loopj/android/http/RequestHandle.java
+14-14
Original file line number
Diff line number
Diff line change
@@ -13,27 +13,27 @@ public RequestHandle(Future<?> request) {
13
13
}
14
14
15
15
/**
16
-
* Attempts to cancel this request. This attempt will fail if the request has
17
-
* already completed, has already been cancelled, or could not be cancelled
18
-
* for some other reason. If successful, and this request has not started
19
-
* when cancel is called, this request should never run. If the request has
20
-
* already started, then the mayInterruptIfRunning parameter determines
21
-
* whether the thread executing this request should be interrupted in an
22
-
* attempt to stop the request.
23
-
* <p/>
24
-
* After this method returns, subsequent calls to isDone() will always
25
-
* return true. Subsequent calls to isCancelled() will always return true
26
-
* if this method returned true.
16
+
* Attempts to cancel this request. This attempt will fail if the request has already completed,
17
+
* has already been cancelled, or could not be cancelled for some other reason. If successful,
18
+
* and this request has not started when cancel is called, this request should never run. If the
19
+
* request has already started, then the mayInterruptIfRunning parameter determines whether the
20
+
* thread executing this request should be interrupted in an attempt to stop the request.
21
+
* <p> </p> After this method returns, subsequent calls to isDone() will always return
22
+
* true. Subsequent calls to isCancelled() will always return true if this method returned
23
+
* true.
27
24
*
28
-
* @param mayInterruptIfRunning true if the thread executing this request should be interrupted; otherwise, in-progress requests are allowed to complete
29
-
* @return false if the request could not be cancelled, typically because it has already completed normally; true otherwise
25
+
* @param mayInterruptIfRunning true if the thread executing this request should be interrupted;
26
+
* otherwise, in-progress requests are allowed to complete
27
+
* @return false if the request could not be cancelled, typically because it has already
* Returns true if this task completed. Completion may be due to normal termination, an exception, or cancellation -- in all of these cases, this method will return true.
35
+
* Returns true if this task completed. Completion may be due to normal termination, an
36
+
* exception, or cancellation -- in all of these cases, this method will return true.
0 commit comments