• Lee Howes's avatar
    Add getSemiFuture and storage of executor to FutureSplitter so that returned... · e0d04ed7
    Lee Howes authored
    Add getSemiFuture and storage of executor to FutureSplitter so that returned future completes on the expected executor.
    
    Summary:
    Remove calls to Promise::getFuture in FutureSplitter test.
    
    Add getSemiFuture to FutureSplitter for consistency with Promise.
    
    Keep getFuture method but ensure that it completes on the same executor as the input future (or Inline if the executor on the input future was null, due to legacy code).
    
    Reviewed By: yfeldblum
    
    Differential Revision: D7105806
    
    fbshipit-source-id: 63a919ba9dcf0f189782a3e2a362fad4d86ac91f
    e0d04ed7
FutureSplitter.h 2.81 KB