File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
include/graphqlservice/internal Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ class [[nodiscard]] Awaitable<void>
40
40
41
41
struct promise_type
42
42
{
43
- Awaitable get_return_object () noexcept
43
+ [[nodiscard]] Awaitable get_return_object () noexcept
44
44
{
45
45
return { _promise.get_future () };
46
46
}
@@ -69,7 +69,7 @@ class [[nodiscard]] Awaitable<void>
69
69
std::promise<void > _promise;
70
70
};
71
71
72
- constexpr bool await_ready () const noexcept
72
+ [[nodiscard]] constexpr bool await_ready () const noexcept
73
73
{
74
74
return true ;
75
75
}
@@ -97,14 +97,14 @@ class [[nodiscard]] Awaitable
97
97
{
98
98
}
99
99
100
- T get ()
100
+ [[nodiscard]] T get ()
101
101
{
102
102
return _value.get ();
103
103
}
104
104
105
105
struct promise_type
106
106
{
107
- Awaitable get_return_object () noexcept
107
+ [[nodiscard]] Awaitable get_return_object () noexcept
108
108
{
109
109
return { _promise.get_future () };
110
110
}
@@ -138,7 +138,7 @@ class [[nodiscard]] Awaitable
138
138
std::promise<T> _promise;
139
139
};
140
140
141
- constexpr bool await_ready () const noexcept
141
+ [[nodiscard]] constexpr bool await_ready () const noexcept
142
142
{
143
143
return true ;
144
144
}
@@ -148,7 +148,7 @@ class [[nodiscard]] Awaitable
148
148
h.resume ();
149
149
}
150
150
151
- T await_resume ()
151
+ [[nodiscard]] T await_resume ()
152
152
{
153
153
return _value.get ();
154
154
}
You can’t perform that action at this time.
0 commit comments