Flow_Browser/PrivateBrowser/Pods/PromiseKit/Sources/dispatch_promise.m
2024-04-17 14:43:19 +08:00

11 lines
315 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(QOS_CLASS_UNSPECIFIED, 0), block);
}