-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid unnecessary call to ‘continueWithBlock:’ when a task is completed #57
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
LGTM |
Took a while to get to, so sorry... |
Avoid unnecessary call to ‘continueWithBlock:’ when a task is completed
Hey, sorry for the delay on the I think i choose |
You are more than welcome to open another pull request to use |
Got it, i don't use Thanks for your awesome work with Bolts. |
@BrunoBerisso updated the pull request. |
Not sure what I supposed to do here. |
@BrunoBerisso, completely discard that message. Our GitHub bot went nuts a little bit yesterday. |
When a continuation block is executed with a BFExecutor the internal block that makes the actual call check if the continuation block returns a BFTask, if that is the case a call to
continueWithBlock:
is made and the completion source is updated accordingly to the result of the task.This pull request add code to check if the returned task is complete and update the completion source without made an extra call to
continueWithBlock:
. This increase the performance on memory consumption and execution time. And also make sence :)