AwaitKit icon indicating copy to clipboard operation
AwaitKit copied to clipboard

The ES8 Async/Await control flow for Swift

Results 18 AwaitKit issues
Sort by recently updated
recently updated
newest added

The introduction of async/await in Swift 5.5 (https://github.com/apple/swift-evolution/blob/main/proposals/0296-async-await.md) promoted the "await" word to keyword. Therefore to use it in the context of function call, it must be wrapped in backticks,...

I have a function: `func find(name: String, complete: (([Result])->Void))` I want to convert to a function something like this: ``` func find(name: String) -> Promise { find(name: name) { (result)...

The code is like this ```swift import UIKit import PromiseKit import AwaitKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() let urlRequest = URLRequest(url: URL(string: "https://zhaoxin.pro")!) if let (data,...

As the title suggests, though AwaitKit is still supporting iOS 8. PromiseKit requires that the SDK must be later than iOS 12. And Xcode will show an error when building...

I've have installed AwaitKit in a project, however have not started to implement it. The addition of it however has now started my Unit Test's to fail with - ```...

This PR adds support for `await`ing optional promises, which allows for optional chaining inside an `await` function, like so: ```swift try await(self.foo?.bar()) ``` If the promise is `nil`, `await` immediately...

Hello, do you think you can update podspec file to require only PromiseKit/CorePromise as it is enough for AwaitKit to work (I believe). I am using just CorePromise in my...

My app was crashing and I'm pretty sure it was because Carthage was pulling in AwaitKit 6.8.3. ``` dyld: lazy symbol binding failed: Symbol not found: _$S10PromiseKit8ThenablePAAE4then2on5flags_AA0A0Cy1TQyd__GSo17OS_dispatch_queueCSg_8Dispatch0J13WorkItemFlagsVSgqd__AIQzKctAaBRd__lFfA0_ Referenced from: Frameworks/AwaitKit.framework/AwaitKit...