std::coroutine_handle<Promise>::from_promise

Creates a coroutine_handle from the promise object of a coroutine. The created coroutine_handle refers the coroutine, and promise() returns a reference to p.

# Declarations

static coroutine_handle from_promise( Promise& p );

(since C++20)

# Parameters

# Return value

A coroutine_handle referring the given coroutine.

# Example

This section is incompleteReason: no example

# See also