C/C++ API 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.

Inheritance diagram for pw::async2::ValueFuture< void >:
pw::async2::ListableFutureWithWaker< ValueFuture< void >, void > pw::async2::Future< Derived, T > pw::containers::future::IntrusiveList< T >::Item

Public Types

using Base = ListableFutureWithWaker< ValueFuture< void >, void >
 
- Public Types inherited from pw::async2::Future< Derived, T >
using value_type = std::conditional_t< std::is_void_v< T >, ReadyType, T >
 

Public Member Functions

 ValueFuture (ValueFuture &&other) noexcept
 
ValueFutureoperator= (ValueFuture &&other) noexcept
 
- Public Member Functions inherited from pw::async2::ListableFutureWithWaker< ValueFuture< void >, void >
 ListableFutureWithWaker (const ListableFutureWithWaker &)=delete
 
ListableFutureWithWakeroperator= (const ListableFutureWithWaker &)=delete
 
- Public Member Functions inherited from pw::async2::Future< Derived, T >
Poll< value_type > Pend (Context &cx)
 
bool is_complete () const
 

Static Public Member Functions

static ValueFuture Resolved ()
 

Friends

class ValueProvider< void >
 
class BroadcastValueProvider< void >
 

Additional Inherited Members

- Protected Types inherited from pw::async2::ListableFutureWithWaker< ValueFuture< void >, void >
enum  ConstructedState
 Tag to prevent accidental default construction.
 
using Lock = Provider
 
- Protected Member Functions inherited from pw::async2::ListableFutureWithWaker< ValueFuture< void >, void >
 ListableFutureWithWaker (ConstructedState state)
 
 ListableFutureWithWaker (ListFutureProvider< ValueFuture< void > > &provider)
 
 ListableFutureWithWaker (SingleFutureProvider< ValueFuture< void > > &single)
 
void MoveFrom (ListableFutureWithWaker &other)
 
ListFutureProvider< ValueFuture< void > > & provider ()
 
Lock & lock ()
 
void Wake ()
 Wakes the task waiting on the future.
 
- Protected Member Functions inherited from pw::containers::future::IntrusiveList< T >::Item
constexpr Item ()=default
 

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