|
@@ -109,7 +109,7 @@ class ImagePrefetcherTests: XCTestCase {
|
|
|
prefetcher.maxConcurrentDownloads = maxConcurrentCount
|
|
prefetcher.maxConcurrentDownloads = maxConcurrentCount
|
|
|
|
|
|
|
|
prefetcher.start()
|
|
prefetcher.start()
|
|
|
- prefetcher.cancel()
|
|
|
|
|
|
|
+ prefetcher.stop()
|
|
|
|
|
|
|
|
let delayTime = dispatch_time(DISPATCH_TIME_NOW, Int64(0.1 * Double(NSEC_PER_SEC)))
|
|
let delayTime = dispatch_time(DISPATCH_TIME_NOW, Int64(0.1 * Double(NSEC_PER_SEC)))
|
|
|
dispatch_after(delayTime, dispatch_get_main_queue()) {
|
|
dispatch_after(delayTime, dispatch_get_main_queue()) {
|