std::coroutine_handle<Promise>::operator(), std::coroutine_handle<Promise>::resume

  1. Resumes the execution of the coroutine to which *this refers, or does nothing if the coroutine is a no-op coroutine.

# Declarations

Member of other specializations
void operator()() const;
void resume() const;

(since C++20)

Member of specialization std::coroutine_handle<std::noop_coroutine_promise>
constexpr void operator()() const noexcept;
constexpr void resume() const noexcept;

(since C++20)

# Return value

(none)

# Notes

A coroutine that is resumed on a different execution agent should avoid relying on consistent thread identity throughout, such as holding a mutex object across a suspend point.

# Example

This section is incompleteReason: no example

# See also