GRPC Core  18.0.0
Public Member Functions
grpc_event_engine::experimental::Promise< T > Class Template Reference

A minimal promise implementation. More...

#include <promise.h>

Public Member Functions

T & Get ()
 
void Set (T &&val)
 

Detailed Description

template<typename T>
class grpc_event_engine::experimental::Promise< T >

A minimal promise implementation.

This is light-duty, syntactical sugar around cv wait & signal, which is useful in some cases. A more robust implementation is being worked on separately.

Member Function Documentation

◆ Get()

template<typename T >
T& grpc_event_engine::experimental::Promise< T >::Get ( )
inline

◆ Set()

template<typename T >
void grpc_event_engine::experimental::Promise< T >::Set ( T &&  val)
inline

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