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

A coroutine awaiter for connecting a PostgresClient asynchronously. More...

#include <PostgresCoro.hpp>

Public Member Functions

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

Public Attributes

std::shared_ptr< PostgresClient > client
 
bool success = false
 

Detailed Description

A coroutine awaiter for connecting a PostgresClient asynchronously.

Member Function Documentation

◆ await_ready()

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

◆ await_resume()

bool orbit::database::ConnectAwaiter::await_resume ( )
inline

◆ await_suspend()

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

Member Data Documentation

◆ client

std::shared_ptr<PostgresClient> orbit::database::ConnectAwaiter::client

◆ success

bool orbit::database::ConnectAwaiter::success = false

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