Add method, that constructs Try<T> based on the result of functor.
Summary: Usually we construct Try<T> as a result of execution of some functor. And we need to treat void and non-void functors in similar way, but that requires different, yet similar pieces of code. This diff simplifies future usage of Try. Test Plan: compile only Reviewed By: andrii@fb.com FB internal diff: D1190296
Showing
folly/wangle/test/Try.cpp
0 → 100644
Please register or sign in to comment