Check in xcshareddata
CBGPromise is available through CocoaPods and Carthage.
Add the following line to your Podfile:
pod "CBGPromise"
Add the following line to your Cartfile:
github "cbguder/CBGPromise"
A simple example might look like this:
import CBGPromise class Client { func getValue() -> Future<String> { let promise = Promise<String>() someAsyncCall { promise.resolve("Test") } return promise.future } } class SimpleExample { func main() { let client = Client() client.getValue().then { value in print(value) } } }
For other examples, see the Examples folder.
Can Berk Güder
CBGPromise is available under the MIT license. See the LICENSE file for more info.
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
CBGPromise
Installation
CBGPromise is available through CocoaPods and Carthage.
CocoaPods
Add the following line to your Podfile:
Carthage
Add the following line to your Cartfile:
Usage
A simple example might look like this:
For other examples, see the Examples folder.
Author
Can Berk Güder
License
CBGPromise is available under the MIT license. See the LICENSE file for more info.