[Add] nashidVerifySDK 1.0.16
[CocoaPods.git] / Specs / 6 / d / 8 / SJPromise / 0.0.3 / SJPromise.podspec.json
blob00b297bd1e2702e89fd0db98ec7f91a783b9272b
2   "name": "SJPromise",
3   "version": "0.0.3",
4   "summary": "like js promise.",
5   "description": "SJPromise.promise(^(SJPromiseContinuation * _Nonnull complete) {  // task 1\n    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{\n        // resolve\n        complete.resolve(@(1));\n        // or reject\n        // complete.reject([NSError errorWithXXX]);\n    });\n}).then(^SJPromiseReturnValue _Nullable(id  _Nullable value) { // task 2\n    return xxx; // or return SJPromise.promise(...);\n}).catch(^SJPromiseReturnValue _Nullable(NSError * _Nonnull error) { // catch error\n    return xxx; // or return SJPromise.promise(...);\n}).finally(^{\n    NSLog(@\"任务结束\");\n});",
6   "homepage": "https://github.com/changsanjiang/SJPromise",
7   "license": {
8     "type": "MIT",
9     "file": "LICENSE"
10   },
11   "authors": {
12     "changsanjiang": "changsanjiang@gmail.com"
13   },
14   "platforms": {
15     "ios": "12.0"
16   },
17   "source": {
18     "git": "https://github.com/changsanjiang/SJPromise.git",
19     "tag": "0.0.3"
20   },
21   "source_files": "lib/**/*.{h,m}"