FastArduino  v1.9
C++ library to build fast but small Arduino/AVR projects
future::FutureStatusListener< F > Class Template Referenceabstract

Listener is the interface allowing to listen to changes of a Future status. More...

#include <fastarduino/future.h>

Inheritance diagram for future::FutureStatusListener< F >:

Protected Member Functions

virtual void on_status_change (const F &future, FutureStatus new_status)=0
 Called whenever a listened-to Future changes its FutureStatus. More...
 

Protected Attributes

friend F
 

Detailed Description

template<typename F>
class future::FutureStatusListener< F >

Listener is the interface allowing to listen to changes of a Future status.

This may be added to any Future at construction time.

Template Parameters
Fthe type of Future to listen to; this may be AbstractFuture, AbstractFakeFuture, or any subclass of these.
See also
Future
FutureStatus
FutureOutputListener

Definition at line 175 of file future.h.

Member Function Documentation

◆ on_status_change()

template<typename F >
virtual void future::FutureStatusListener< F >::on_status_change ( const F &  future,
FutureStatus  new_status 
)
protectedpure virtual

Called whenever a listened-to Future changes its FutureStatus.

Parameters
futurea reference to the Future which status has changed
new_statusthe new FutureStatus of future

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