Added nodiscard attribute to TaskBase.

This commit is contained in:
Patrick 2024-06-27 18:13:26 +02:00
parent b1fa99428e
commit eccaa177ca

View File

@ -335,6 +335,7 @@ struct TaskPromise : impl::TaskReturn<typename TTraits::result_t, TaskPromise<TT
};
template<typename TResult>
[[nodiscard("Tasks should either we awaited or added to a loop.")]]
class TaskBase
{
public: