mirror of
https://github.com/Naios/continuable.git
synced 2025-12-06 16:56:44 +08:00
Partially revert 2cbac4da98e57
This commit is contained in:
parent
17f454ceb6
commit
017d89e34e
@ -806,10 +806,10 @@ constexpr auto make_ready_continuable(FirstResult&& first_result,
|
|||||||
/// returned continuable.
|
/// returned continuable.
|
||||||
///
|
///
|
||||||
/// \since 3.0.0
|
/// \since 3.0.0
|
||||||
template <typename FirstArg = void, typename... Rest>
|
template <typename Exception, typename FirstArg = void, typename... Rest>
|
||||||
constexpr auto make_exceptional_continuable(error_type exception) {
|
constexpr auto make_exceptional_continuable(Exception&& exception) {
|
||||||
return make_continuable<FirstArg, Rest...>( // ...
|
return make_continuable<FirstArg, Rest...>( // ...
|
||||||
[exception = std::move(exception)](auto&& promise) mutable {
|
[exception = std::forward<Exception>(exception)](auto&& promise) mutable {
|
||||||
std::forward<decltype(promise)>(promise).set_exception(
|
std::forward<decltype(promise)>(promise).set_exception(
|
||||||
std::move(exception));
|
std::move(exception));
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user