Closed joemalle closed 5 years ago
Currently there is no warning if you call a function that returns an awaitable but don't call co_await. At best, there is a runtime diagnostic. Adding [[nodiscard]] to the awaitable types would make the compiler warn about these mistakes.
I can make a PR if this seems reasonable to you.
I've asked before on the cpp slack:
Currently there is no warning if you call a function that returns an awaitable but don't call co_await. At best, there is a runtime diagnostic. Adding [[nodiscard]] to the awaitable types would make the compiler warn about these mistakes.
I can make a PR if this seems reasonable to you.