You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// package up everything else as an exception_list
return hpx::make_exceptional_future<Result>(
exception_list(e));
}
}
Above, the first handle_exception_impl<>::call() in Line 31 just throws exception. But, the second and third one return an exceptional future. As I think, this is strange. It seems inconsistent.
I think that the struct of Line 79 is for parallel algorithm called with execution::task. So, in the struct, call() all both should return hpx::future<Result>. (In other words, should return exceptional future.)
But in case of Line 27, it is different case. So, it should just return Result as I think. (In other words, should just throw exception.)
How do you think about this issue?
The text was updated successfully, but these errors were encountered:
This looks suspicious, yes. I will try to investigate in more detail over the next days as I have no immediate answer to why we have it this way. Since all tests pass I'd suspect that
we either don't test all possible exceptional cases and the code is incorrect,
@hkaiser This has been not fixed by now. I thought that this is still suspicious. And I waited your reply until now.
How we go about this? Fixing this suspicious thing as I suggest? Or what should we do?
I have one doubt about parallel::detail::handle_exception.
hpx/hpx/parallel/exception_list.hpp
Lines 26 to 74 in 76f7c3b
Above, the first
handle_exception_impl<>::call()
in Line 31 just throws exception. But, the second and third one return an exceptional future. As I think, this is strange. It seems inconsistent.I think that the struct of Line 79 is for parallel algorithm called with
execution::task
. So, in the struct,call()
all both should returnhpx::future<Result>
. (In other words, should return exceptional future.)But in case of Line 27, it is different case. So, it should just return
Result
as I think. (In other words, should just throw exception.)How do you think about this issue?
The text was updated successfully, but these errors were encountered: