• Lee Howes's avatar
    Consistency with folly::SemiFuture continuations 4/n: thenError · 95016602
    Lee Howes authored
    Summary:
    Step 4 in adding full set of r-value-qualified unambiguous continuation methods to folly::Future for consistency with folly::SemiFuture.
     * Adds r-value qualified thenError that just call onError internally but in a more type safe obvious way.
     * Makes exception selection explicit to avoid exception_wrapper exception-type ambiguity in continuations.
    
    Reviewed By: yfeldblum
    
    Differential Revision: D7971326
    
    fbshipit-source-id: 8aa94161abb629d94ee8da6fb0a4bca991cf24e4
    95016602
FutureTest.cpp 40.4 KB