Commit 5f3b2b63 authored by Lee Howes's avatar Lee Howes Committed by Facebook Github Bot

Remove l-value qualified Future::onError

Summary: l-value Future::onError was deprecated but not deleted. This diff makes that final cleanup.

Reviewed By: Orvid

Differential Revision: D13419719

fbshipit-source-id: d763b75ab3351811f35ad880291426c153aefda9
parent a3085174
......@@ -1520,9 +1520,7 @@ class Future : private futures::detail::FutureBase<T> {
// clang-format off
template <class F>
[[deprecated("use rvalue-qualified fn, eg, std::move(future).onError(...)")]]
Future<T> onError(F&& func) & {
return std::move(*this).onError(std::forward<F>(func));
}
Future<T> onError(F&& func) & = delete;
/// func is like std::function<void()> and is executed unconditionally, and
/// the value/exception is passed through to the resulting Future.
......
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