• Marshall Cline's avatar
    Future::get() - make postcond testable by callers · 7c9d20fd
    Marshall Cline authored
    Summary:
    SemiFuture::get() & Future::get() both render the `this` object in a consumed / moved-out state. However Future::get()'s postcondition was untestable by callers - it consumed the value within the core but left `this->valid()` true.
    
    Goal: make Future::get():
    - function like SemiFuture::get()
    - testable by callers (see `valid()`)
    
    Reviewed By: yfeldblum
    
    Differential Revision: D7840699
    
    fbshipit-source-id: 5102e9c3de026c021bf322b5109aafcc115207a2
    7c9d20fd
Future-inl.h 58.3 KB