Skip to content

Commit e584a4f

Browse files
authored
Refactor result method to call basic_task wait
1 parent bf664b9 commit e584a4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xtd.core/include/xtd/threading/tasks/task_result.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ namespace xtd {
9090

9191
/// @{
9292
[[nodiscard]] auto result() const noexcept -> const result_t& {
93-
wait();
93+
basic_task<result_t>::wait();
9494
return basic_task<result_t>::data_->result;
9595
}
9696
/// @}

0 commit comments

Comments
 (0)