Async/await for NukeExtensions · Issue #830 · kean/Nuke · GitHub
Skip to content

Async/await for NukeExtensions #830

Open

Description

@NikKovIos

Is there any async/await API planned?

import Nuke
import NukeExtensions

extension UIImageView {
    enum ImageLoadingError: Error {
        case pathIsNil
        case badURL
    }

    func loadImage(path: String?) async throws {
        guard let path else {
            throw ImageLoadingError.pathIsNil
        }
        guard let url = URL(string: path) else {
            throw ImageLoadingError.badURL
        }
        NukeExtensions.loadImage(with: url, into: self) <- here
    }
}

Activity

  1. kean commented on Mar 1, 2025

    @kean
    Owner

    I haven't considered it, but it would be nice to add.

  2. added this to the 14.0 milestone on Aug 15, 2026
  3. kean commented on Aug 15, 2026

    @kean
    Owner

    I plan to add it in 14.0 along with some other changes to the public APIs (making better use of Swift Concurrency).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions