fpromise::future_impl
Summary
Public types
error_type
typename Promise::error_type error_type
promise_type
Promise promise_type
result_type
typename Promise::result_type result_type
value_type
typename Promise::value_type value_type
Public functions
error
R & error()
error
const R & error() const
future_impl
future_impl()=default
future_impl
future_impl(
decltype(nullptr)
)
future_impl
future_impl(
promise_type promise
)
future_impl
future_impl(
result_type result
)
future_impl
future_impl(
future_impl && other
)
future_impl
future_impl(
const future_impl &
)=delete
is_empty
bool is_empty() const
is_error
bool is_error() const
is_ok
bool is_ok() const
is_pending
bool is_pending() const
is_ready
bool is_ready() const
operator bool
operator bool() const
operator()
bool operator()(
fpromise::context & context
)
operator=
future_impl & operator=(
future_impl && other
)=default
operator=
future_impl & operator=(
decltype(nullptr)
)
operator=
future_impl & operator=(
promise_type promise
)
operator=
future_impl & operator=(
result_type result
)
operator=
future_impl & operator=(
const future_impl &
)=delete
promise
const promise_type & promise() const
result
result_type & result()
result
const result_type & result() const
state
future_state state() const
swap
void swap(
future_impl & other
)
take_error
R take_error()
take_error_result
error_result< error_type > take_error_result()
take_ok_result
ok_result< value_type > take_ok_result()
take_promise
promise_type take_promise()
take_result
result_type take_result()
take_value
R take_value()
value
R & value()
value
const R & value() const
~future_impl
~future_impl()=default
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-12-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-12-14 UTC."],[],[]]