 	
 	static let maxIconSize = 48
 	
-	static func scaledForIcon(_ data: Data, imageResultBlock: @escaping (RSImage?) -> Void) {
-		DispatchQueue.global(qos: .default).async {
-			let image = RSImage.scaledForIcon(data)
-			DispatchQueue.main.async {
-				imageResultBlock(image)
-			}
-		}
+	static func scaledForIcon(_ data: Data, imageResultBlock: @escaping ImageResultBlock) {
+		IconScalerQueue.shared.scaledForIcon(data, imageResultBlock)
 	}
 
 	static func scaledForIcon(_ data: Data) -> RSImage? {

		#endif		
	}
}

//  Copyright © 2019 Ranchero Software. All rights reserved.
//

import RSCore
#if os(macOS)
import AppKit
#else
