FastArduino  v1.8
C++ library to build fast but small Arduino/AVR projects
future.h File Reference

Utility API to handle the concept of futures. More...

#include <string.h>
#include "iterator.h"
#include "errors.h"
#include "move.h"
#include "streams.h"
#include "time.h"
Include dependency graph for future.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  future::FutureStatusListener< F >
 Listener is the interface allowing to listen to changes of a Future status. More...
 
class  future::FutureOutputListener< F >
 Listener is the interface allowing to listen to changes of a Future output buffer (while being fed by a producer). More...
 
class  future::AbstractFuture
 Base class for all Futures. More...
 
class  future::Future< OUT_, IN_ >
 Represent a value to be obtained, in some asynchronous way, in the future. More...
 
class  future::AbstractFakeFuture
 Base class for all FakeFutures. More...
 
class  future::FakeFuture< OUT_, IN_ >
 Actual FakeFuture, it has the exact same API as Future and can be used in lieu of Future. More...
 
class  future::AbstractFuturesGroup< F >
 Abstract class to allow aggregation of several futures. More...
 

Namespaces

 future
 Contains the API around Future implementation.
 

Enumerations

enum  future::FutureStatus : uint8_t {
  future::FutureStatus::NOT_READY = 0,
  future::FutureStatus::READY,
  future::FutureStatus::ERROR,
  future::FutureStatus::INVALID
}
 Status of a Future. More...
 

Detailed Description

Utility API to handle the concept of futures.

For general discussion about this concept, please check https://en.wikipedia.org/wiki/Futures_and_promises

Definition in file future.h.