MMX-PromiseKit

时间:2021-05-10 10:50:55
【文件属性】:
文件名称:MMX-PromiseKit
文件大小:25KB
文件格式:ZIP
更新时间:2021-05-10 10:50:55
Objective-C MMX承诺套件 #安装 将PromiseKit类别包含在#import "MMX+PromiseKit.h" 。 #用法 大多数方法都是从回调到Promise的直接转换。 例如,要查找标签为foo频道: [MMXChannel findByTags:[NSSet setWithArray:@[@"foo"]]] .then(^(NSNumber *count, NSArray* channels){ }); 对于在执行回调之前返回messageID消息方法,将以messageID作为第一个参数,并以完成承诺作为第二个参数,返回一个promise: MMXMessage *messsage = [MMXMessage messageToChannel:someChannel messageContent:someContent]; [message send] .
【文件预览】:
MMX-PromiseKit-master
----MMX-PromiseKit.xcworkspace()
--------contents.xcworkspacedata(232B)
----.coveralls.yml(0B)
----MMX-PromiseKit()
--------Info.plist(806B)
--------MMX_PromiseKit.h(553B)
--------MMX_PromiseKit.swift(9KB)
--------MMX+PromiseKit.h(2KB)
--------MMX-PromiseKitTests-Bridging-Header.h(128B)
--------MMX+PromiseKit.m(8KB)
--------Casts.swift(338B)
----Podfile.lock(3KB)
----MMX-PromiseKitTests()
--------Info.plist(733B)
--------MMX-PromiseKit.swift(16KB)
--------MMX-PromiseKit.m(25KB)
----MMX-PromiseKit.xcodeproj()
--------xcshareddata()
--------project.xcworkspace()
--------project.pbxproj(28KB)
----.travis.yml(529B)
----Podfile(304B)
----LICENSE(1KB)
----README.md(1KB)
----.slather.yml(125B)
----.gitignore(249B)
----MMX-PromiseKit.podspec(6KB)

网友评论