| Flutter Impeller |

Public Member Functions | List of all members
impeller::NoExceptionPromise< T > Class Template Reference

`#include <promise.h>`

## Public Member Functions
| NoExceptionPromise ()=default
| ~NoExceptionPromise ()
std::future< T > | get_future ()
void | set_value (const T &value)

## Detailed Description

### template<typename T>
class impeller::NoExceptionPromise< T >

Definition at line 26 of file promise.h.

## Constructor & Destructor Documentation

## ◆ NoExceptionPromise()

template<typename T >

impeller::NoExceptionPromise< T >::NoExceptionPromise | ( |  | ) |
| default

## ◆ ~NoExceptionPromise()

template<typename T >

impeller::NoExceptionPromise< T >::~NoExceptionPromise | ( |  | ) |
| inline

Definition at line 30 of file promise.h.

30 {
31 if (!value_set_) {
32 promise_.set_value({});
33 }
34 }

## Member Function Documentation

## ◆ get_future()

template<typename T >

std::future<T> impeller::NoExceptionPromise< T >::get_future | ( |  | ) |
| inline

Definition at line 36 of file promise.h.

36 { return promise_.get_future(); }

Referenced by impeller::testing::TEST().

## ◆ set_value()

template<typename T >

void impeller::NoExceptionPromise< T >::set_value | ( | const T & | value | ) |
| inline

Definition at line 38 of file promise.h.

38 {
39 promise_.set_value(value);
40 value_set_ = true;
41 }

Referenced by impeller::testing::TEST().

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

- impeller/base/promise.h