|
| sharedFuture (const sharedFuture &)=default |
|
sharedFuture & | operator= (const sharedFuture &)=default |
|
| sharedFuture (sharedFuture &&)=default |
|
sharedFuture & | operator= (sharedFuture &&)=default |
|
bool | valid () const noexcept override |
| Checks if the shared future is valid (has an associated async wrapper)
|
|
void | result () const |
| Waits for completion and checks for exceptions.
|
|
bool | ready () const override |
| Checks if the computation is completed.
|
|
std::exception_ptr | exception () const noexcept override |
| Gets the exception if computation failed.
|
|
bool | operator== (const sharedFuture &other) const noexcept |
| Equality comparison operator.
|
|
bool | operator!= (const sharedFuture &other) const noexcept |
| Inequality comparison operator.
|
|
void | wait () const override |
| Waits until the computation completes.
|
|
bool | waitFor (time::duration timeout) const override |
| Waits for the result with a timeout.
|
|
u_integer | toHash () const noexcept override |
| Generates a hash value for the shared future.
|
|
bool | equals (const sharedFuture &other) const noexcept override |
| Checks if two shared futures are equal.
|
|
virtual bool | equals (const sharedFuture< void > &other) const noexcept |
| Compares two objects for equality.
|
|
virtual | ~hashable ()=0 |
| Virtual destructor.
|
|
◆ equals()
Checks if two shared futures are equal.
- Parameters
-
other | The other shared future to compare with |
- Returns
- True if both shared futures refer to the same async wrapper
◆ exception()
|
inlineoverridevirtualnoexcept |
◆ operator!=()
Inequality comparison operator.
- Parameters
-
other | The other shared future to compare with |
- Returns
- True if shared futures refer to different async wrappers
◆ operator==()
Equality comparison operator.
- Parameters
-
other | The other shared future to compare with |
- Returns
- True if both shared futures refer to the same async wrapper
◆ ready()
◆ result()
Waits for completion and checks for exceptions.
- Exceptions
-
std::exception | if the computation threw an exception |
◆ toHash()
|
inlineoverridevirtualnoexcept |
◆ valid()
|
inlineoverridevirtualnoexcept |
Checks if the shared future is valid (has an associated async wrapper)
- Returns
- True if valid, false otherwise
Implements original::async::futureBase.
◆ wait()
◆ waitFor()
Waits for the result with a timeout.
- Parameters
-
timeout | Maximum time to wait |
- Returns
- True if result is ready within timeout, false otherwise
Implements original::async::futureBase.
The documentation for this class was generated from the following file: