BottleRocketStudios / iOS-Hyperspace

An extremely lightweight wrapper around URLSession to make working with APIs a breeze.
Apache License 2.0
47 stars 17 forks source link

Feature/GitHub actions #148

Closed wmcginty closed 2 years ago

wmcginty commented 2 years ago
wmcginty commented 2 years ago

Yea, I think the deinit functionality could use some brainstorming on possible alternates. It feels kinda weird to just pull the functionality from cancelAllTasks() into the deinit.

Maybe

func cancelAllTasks(executeImmediately: Bool = false) {
  // use queue or not depending on executeImmediately
}

Thoughts @GrandLarseny ?

wmcginty commented 2 years ago

@GrandLarseny Updated to use Xcode 13.2, so I dropped the availability for the async functions back down to 13.0.