FastLED 3.9.15
Loading...
Searching...
No Matches
promise_result.h File Reference
#include "fl/stl/variant.h"
#include "fl/task/promise.h"
+ Include dependency graph for promise_result.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fl::task::PromiseResult< T >
 Result type for promise operations. More...
 

Namespaces

namespace  fl
 Base definition for an LED controller.
 
namespace  fl::task
 

Functions

template<typename T>
PromiseResult< T > fl::task::make_error (const char *message)
 Helper function to create an error result from C-string.
 
template<typename T>
PromiseResult< T > fl::task::make_error (const Error &error)
 Helper function to create an error result.
 
template<typename T>
PromiseResult< T > fl::task::make_error (const fl::string &message)
 Helper function to create an error result from string.
 
template<typename T>
PromiseResult< T > fl::task::make_error (Error &&error)
 Helper function to create an error result (move)
 
template<typename T>
PromiseResult< T > fl::task::make_success (const T &value)
 Helper function to create a successful result.
 
template<typename T>
PromiseResult< T > fl::task::make_success (T &&value)
 Helper function to create a successful result (move)