WPILibC++ 2023.4.3
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
 /file This file defines the SmallVector class.
 
namespace  wpi::detail
 detail namespace with internal helper functions
 

Functions

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