14bool IsStop(
const std::exception_ptr& error)
noexcept {
15 if (error ==
nullptr) {
22 std::rethrow_exception(error);
Contract< V, T > MakeContract()
Creates related future and promise.
bool IsStop(const std::exception_ptr &error) noexcept
Check if error represents cancellation,.
const std::exception_ptr & StopPtr() noexcept
Cached std::exception_ptr with StopException, copy is cheap and never allocates.
Exception that represents cancellation of an async operation,.