Use terminate_with in Futures Core invalid transitions
Summary: [Folly] Use `terminate_with` in Futures `Core` invalid transitions. Both `Promise` and `Future` check state validity before calling the `Core` transition methods and throws in invalid state. So `Core` no longer needs to throw and may terminate instead. Reviewed By: marshallcline Differential Revision: D8346113 fbshipit-source-id: 9ff158673149096789b29544453262797b06d441
Showing
Please register or sign in to comment