Added nodiscard attribute to TaskBase.
This commit is contained in:
parent
b1fa99428e
commit
eccaa177ca
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user