Add inline forms of future continuation operations.
Summary: Adds inline-supporting forms of thenValue and thenTry. Carries this information in the Core through a variant of the HasCallback state. Dispatches the continuation inline rather than on the executor if that state is set. Propagate completing executor through intermediate promise and make inline execution conditional on matching executors. Only continue inline if the executor of the completing task matches that of the task-to-be-enqueued, to ensure that calls to via always trigger reposting and that there are no surprises where work runs on the wrong executor. Reviewed By: yfeldblum Differential Revision: D15292236 fbshipit-source-id: 51ddd5cfd1196ea9e9f408e2b1337ff9d4fa5b9f
Showing
This diff is collapsed.
Please register or sign in to comment