28 : on_completion_([]() {})
29 , on_success_([]() {})
30 , on_failure_([]() {})
40 return complete_.load(std::memory_order::memory_order_acquire);
49 catch (std::exception &e)
52 "Task throwed an exception. It'll be swallowed but will still be stored "
55 eptr_ = std::current_exception();
72 complete_.store(
true, std::memory_order::memory_order_release);
77 << (
success_ ?
"successfully" :
"with error."));
82 std::unique_lock<std::mutex> ul(
mutex_);
84 return complete_.load(std::memory_order::memory_order_acquire);