Files
Jot/Carthage/Checkouts/PromiseKit/Sources/dispatch_promise.m
James Griffin be7b6b5881 Add PromiseKit dependency
- Added PromiseKit dependency
2018-11-15 22:12:39 -04:00

11 lines
295 B
Objective-C

#import "AnyPromise.h"
@import Dispatch;
AnyPromise *dispatch_promise_on(dispatch_queue_t queue, id block) {
return [AnyPromise promiseWithValue:nil].thenOn(queue, block);
}
AnyPromise *dispatch_promise(id block) {
return dispatch_promise_on(dispatch_get_global_queue(0, 0), block);
}