Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
Loading...
Searching...
No Matches
orbit::database::ResultAwaiter Struct Reference

Awaits any PostgresClient operation that reports a ResultSet. More...

#include <PostgresCoro.hpp>

Collaboration diagram for orbit::database::ResultAwaiter:

Public Member Functions

bool await_ready () const noexcept
 
void await_suspend (std::coroutine_handle<> h)
 
ResultSet await_resume ()
 

Public Attributes

std::function< void(std::function< void(const ResultSet &)>)> start
 
ResultSet result
 

Detailed Description

Awaits any PostgresClient operation that reports a ResultSet.

Member Function Documentation

◆ await_ready()

bool orbit::database::ResultAwaiter::await_ready ( ) const
inlinenoexcept

◆ await_resume()

ResultSet orbit::database::ResultAwaiter::await_resume ( )
inline

◆ await_suspend()

void orbit::database::ResultAwaiter::await_suspend ( std::coroutine_handle<>  h)
inline

Member Data Documentation

◆ result

ResultSet orbit::database::ResultAwaiter::result

◆ start

std::function<void(std::function<void(const ResultSet&)>)> orbit::database::ResultAwaiter::start

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