Committed by
GitHub
Update Prefetch Docs
Updated prefetchUrls: and prefetchUrls:progress:completed: documentation to mention that any already running prefetch operations are canceled if the operation is called.
Showing
1 changed file
with
4 additions
and
2 deletions
@@ -78,7 +78,8 @@ typedef void(^SDWebImagePrefetcherCompletionBlock)(NSUInteger noOfFinishedUrls, | @@ -78,7 +78,8 @@ typedef void(^SDWebImagePrefetcherCompletionBlock)(NSUInteger noOfFinishedUrls, | ||
78 | /** | 78 | /** |
79 | * Assign list of URLs to let SDWebImagePrefetcher to queue the prefetching, | 79 | * Assign list of URLs to let SDWebImagePrefetcher to queue the prefetching, |
80 | * currently one image is downloaded at a time, | 80 | * currently one image is downloaded at a time, |
81 | - * and skips images for failed downloads and proceed to the next image in the list | 81 | + * and skips images for failed downloads and proceed to the next image in the list. |
82 | + * Any previously-running prefetch operations are canceled. | ||
82 | * | 83 | * |
83 | * @param urls list of URLs to prefetch | 84 | * @param urls list of URLs to prefetch |
84 | */ | 85 | */ |
@@ -87,7 +88,8 @@ typedef void(^SDWebImagePrefetcherCompletionBlock)(NSUInteger noOfFinishedUrls, | @@ -87,7 +88,8 @@ typedef void(^SDWebImagePrefetcherCompletionBlock)(NSUInteger noOfFinishedUrls, | ||
87 | /** | 88 | /** |
88 | * Assign list of URLs to let SDWebImagePrefetcher to queue the prefetching, | 89 | * Assign list of URLs to let SDWebImagePrefetcher to queue the prefetching, |
89 | * currently one image is downloaded at a time, | 90 | * currently one image is downloaded at a time, |
90 | - * and skips images for failed downloads and proceed to the next image in the list | 91 | + * and skips images for failed downloads and proceed to the next image in the list. |
92 | + * Any previously-running prefetch operations are canceled. | ||
91 | * | 93 | * |
92 | * @param urls list of URLs to prefetch | 94 | * @param urls list of URLs to prefetch |
93 | * @param progressBlock block to be called when progress updates; | 95 | * @param progressBlock block to be called when progress updates; |
-
Please register or login to post a comment