mirror of
https://github.com/easychen/pushdeer.git
synced 2024-09-09 22:38:16 +08:00
10 lines
252 B
Objective-C
10 lines
252 B
Objective-C
#import "AnyPromise+Private.h"
|
|
|
|
AnyPromise *PMKRace(NSArray *promises) {
|
|
return [AnyPromise promiseWithResolverBlock:^(PMKResolver resolve) {
|
|
for (AnyPromise *promise in promises) {
|
|
[promise __pipe:resolve];
|
|
}
|
|
}];
|
|
}
|