add unit comment

This commit is contained in:
mertalev
2025-09-11 15:48:48 -04:00
parent 73d650de23
commit fb798a3492

View File

@@ -23,7 +23,12 @@ class AssetResolver {
private var assetRequests = [AssetRequest]()
private let assetCache: NSCache<NSString, PHAsset>
init(fetchOptions: PHFetchOptions, batchTimeout: TimeInterval = 0.00025, cacheSize: Int = 10000, qos: DispatchQoS = .unspecified) {
init(
fetchOptions: PHFetchOptions,
batchTimeout: TimeInterval = 0.00025, // 250μs
cacheSize: Int = 10000,
qos: DispatchQoS = .unspecified
) {
self.fetchOptions = fetchOptions
self.batchTimeout = batchTimeout
self.assetCache = NSCache<NSString, PHAsset>()