Improve tail call optimization
Summary: Existing tail call optimization implementation only works if the returned future already had callback set by the time the future returned by .then() callback is completed, which makes it's behavior racy. This diff takes a slightly different approach by adding a new mode to Core, which makes it forward callback to another Core, once the callback is set. Reviewed By: yfeldblum Differential Revision: D12837044 fbshipit-source-id: 13ad822d8dfdcef8bb5a28108c24195ae911550b
Showing
Please register or sign in to comment