Commit bf7c9957 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Cut SharedPromise::setException overload taking std::exception_ptr

Summary:
[Folly] Cut `SharedPromise::setException` overload taking `std::exception_ptr`.

It is from a time before `exception_wrapper`.

Reviewed By: marshallcline

Differential Revision: D8132039

fbshipit-source-id: eb82f6b766fd5cf82443ef447bbc751e7319f0ab
parent 142c1e1a
......@@ -80,11 +80,6 @@ SharedPromise<T>::setException(E const& e) {
setTry(Try<T>(e));
}
template <class T>
void SharedPromise<T>::setException(std::exception_ptr const& ep) {
setTry(Try<T>(ep));
}
template <class T>
void SharedPromise<T>::setException(exception_wrapper ew) {
setTry(Try<T>(std::move(ew)));
......
......@@ -72,18 +72,8 @@ class SharedPromise {
/** Fulfill the SharedPromise with an exception_wrapper */
void setException(exception_wrapper ew);
/** Fulfill the SharedPromise with an exception_ptr, e.g.
try {
...
} catch (...) {
p.setException(std::current_exception());
}
*/
[[deprecated("use setException(exception_wrapper)")]]
void setException(std::exception_ptr const&);
/** Fulfill the SharedPromise with an exception type E, which can be passed to
std::make_exception_ptr(). Useful for originating exceptions. If you
make_exception_wrapper(). Useful for originating exceptions. If you
caught an exception the exception_wrapper form is more appropriate.
*/
template <class E>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment