Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::Goal::promise_type::final_awaiter Struct Reference

#include <goal.hh>

Public Member Functions

bool await_ready () noexcept
 
std::coroutine_handle await_suspend (handle_type h) noexcept
 
void await_resume () noexcept
 

Detailed Description

The awaiter used by final_suspend.

Member Function Documentation

◆ await_suspend()

std::coroutine_handle nix::promise_type::final_awaiter::await_suspend ( handle_type h)
noexcept

Here we execute our continuation, by passing it back to the caller. C++ compiler will create code that takes that and executes it promptly. h is the handle for the coroutine that is finishing execution, thus it must be destroyed.


The documentation for this struct was generated from the following files: