C/C++ API Reference
Loading...
Searching...
No Matches
pw::async2::ReadyFunctionResultResolution< T > Struct Template Reference

Overview

template<typename T>
struct pw::async2::ReadyFunctionResultResolution< T >

When used as the TimeoutResolution type parameter, causes the FutureWithTimeout wrapper to return Ready(ready_value_fn()) when there is a timeout.

This is useful when the type is large and shouldn't be stored, or if it should be constructed on demand.

Public Types

using value_type = T
 

Public Member Functions

constexpr ReadyFunctionResultResolution (pw::Function< T()> ready_value_fn)
 
constexpr Poll< T > operator() () const
 

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