Skip to content

Commit

Permalink
fix(COPromise.m): fix queue problem
Browse files Browse the repository at this point in the history
fix queue problem

fix alibaba#69
  • Loading branch information
pengyutang125 committed Apr 18, 2019
1 parent 8f9a2a0 commit a5d6867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coobjc/promise/COPromise.m
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ + (instancetype)promise:(COPromiseConstructor)constructor {
}

+ (instancetype)promise:(COPromiseConstructor)constructor onQueue:(dispatch_queue_t)queue {
return [[self alloc] initWithContructor:constructor dispatch:[CODispatch currentDispatch]];
return [[self alloc] initWithContructor:constructor dispatch:[CODispatch dispatchWithQueue:queue]];
}

- (BOOL)isPending {
Expand Down

0 comments on commit a5d6867

Please sign in to comment.