WPILibC++ 2025.3.1
Loading...
Searching...
No Matches
future.h File Reference
#include <stdint.h>
#include <algorithm>
#include <atomic>
#include <chrono>
#include <functional>
#include <type_traits>
#include <utility>
#include <vector>
#include "wpi/condition_variable.h"
#include "wpi/mutex.h"

Go to the source code of this file.

Classes

class  wpi::detail::PromiseFactoryBase
 
struct  wpi::detail::FutureThen< To, From >
 
struct  wpi::detail::FutureThen< void, From >
 
struct  wpi::detail::FutureThen< To, void >
 
struct  wpi::detail::FutureThen< void, void >
 
class  wpi::PromiseFactory< T >
 A promise factory for lightweight futures. More...
 
class  wpi::PromiseFactory< void >
 Explicit specialization for PromiseFactory<void>. More...
 
class  wpi::future< T >
 A lightweight version of std::future. More...
 
class  wpi::future< void >
 Explicit specialization for future<void>. More...
 
class  wpi::promise< T >
 A lightweight version of std::promise. More...
 
class  wpi::promise< void >
 Explicit specialization for promise<void>. More...
 

Namespaces

namespace  wpi
 Foonathan namespace.
 
namespace  wpi::detail
 These are wrappers over isa* function that allow them to be used in generic algorithms such as wpi:all_of, wpi::none_of, etc.
 

Functions

template<typename T >
future< T > wpi::make_ready_future (T &&value)
 Constructs a valid future with the value set.
 
future< void > wpi::make_ready_future ()
 Constructs a valid future with the value set.