Skip to main content
Pigweed's logo Pigweed
  1. Home
  2. Reference
  3. C/C++
  4. pw_async2
  5. Futures
  6. pw::async2::ValueFuture< void > Class Reference
Loading...
Searching...
No Matches
pw::async2::ValueFuture< void > Class Reference

Overview

Specialization for a future that does not return any value, just a completion signal.

Public Types

using value_type = void
 

Public Member Functions

 ValueFuture (ValueFuture &&other) noexcept
 
ValueFutureoperator= (ValueFuture &&other) noexcept
 
void Cancel ()
 
Poll Pend (Context &cx)
 
bool is_pendable () const
 
bool is_complete () const
 

Static Public Member Functions

static ValueFuture Resolved ()
 

Friends

class ValueProvider< void >
 
class BroadcastValueProvider< void >
 
template<typename DerivedFuture >
class DerivedValueProvider
 
template<typename U , typename FutureType >
class ValueListProvider
 

Member Function Documentation

◆ Cancel()

void pw::async2::ValueFuture< void >::Cancel ( )
inline

Cancels the future.

Always call Cancel() in the destructor of any class derived from ValueFuture to ensure the future is unlisted before the derived class members are destroyed.


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