• Lee Howes's avatar
    Add inline forms of future continuation operations. · 73130f76
    Lee Howes authored
    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
    73130f76
Promise-inl.h 3.82 KB