Skip to content

Commit d34e5fa

Browse files
committed
Merge pull request parse-community#339 from ParsePlatform/wangmengyan.update_ParseFile_cancel_comment
Update comment for ParseFile.cancel()
2 parents e6227a6 + e0acb53 commit d34e5fa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Parse/src/main/java/com/parse/ParseFile.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,8 +681,9 @@ public Task<File> then(Task<Void> task) throws Exception {
681681
}
682682

683683
/**
684-
* Cancels the current network request and callbacks whether it's uploading or fetching data from
685-
* the server.
684+
* Cancels the operations for this {@code ParseFile} if they are still in the task queue. However,
685+
* if a network request has already been started for an operation, the network request will not
686+
* be canceled.
686687
*/
687688
//TODO (grantland): Deprecate and replace with CancellationToken
688689
public void cancel() {

0 commit comments

Comments
 (0)