SwiftclassCookingKit

class CookingKit.ImageLoader

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 6

  1. deinitdeinit
  2. fieldlet _loadTasks: os.OSAllocatedUnfairLock<[Foundation.URL : Task<Foundation.Data, Error>]>
  3. fieldlet cache: any CookingKit.CacheType<Self.CacheType.Value == Foundation.Data>+0x10
  4. funcimage(for: Foundation.URL) async throws -> UIImage
  5. funcimageData(for: Foundation.URL) async throws -> Foundation.Data
  6. initCookingKit.ImageLoader.__allocating_init(cache: any CookingKit.CacheType<Self.CacheType.Value == Foundation.Data>) -> CookingKit.ImageLoader
class ImageLoader {
    enum ImageLoaderError {
        case couldNotInitializeImage
    }
    let cache: any CookingKit.CacheType<Foundation.Data>
    let _loadTasks: os.OSAllocatedUnfairLock<[Foundation.URL : Swift.Task<Foundation.Data, any Swift.Error>]>

    init(cache: any CookingKit.CacheType<Foundation.Data>)

    final func image(for: Foundation.URL) async throws -> __C.UIImage
    final func imageData(for: Foundation.URL) async throws -> Foundation.Data

    deinit
}