|
ORIGINAL
|


Public Member Functions | |
| 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. | |
Public Member Functions inherited from original::hashable< sharedFuture< void > > | |
| virtual bool | equals (const sharedFuture< void > &other) const noexcept |
| Compares two objects for equality. | |
| virtual | ~hashable ()=0 |
| Virtual destructor. | |
Friends | |
| class | async |
|
inlineoverridenoexcept |
Checks if two shared futures are equal.
| other | The other shared future to compare with |
|
inlineoverridevirtualnoexcept |
Gets the exception if computation failed.
Implements original::async::futureBase.
|
inlinenoexcept |
Inequality comparison operator.
| other | The other shared future to compare with |
|
inlinenoexcept |
Equality comparison operator.
| other | The other shared future to compare with |
|
inlineoverridevirtual |
Checks if the computation is completed.
Implements original::async::futureBase.
|
inline |
Waits for completion and checks for exceptions.
| std::exception | if the computation threw an exception |
|
inlineoverridevirtualnoexcept |
Generates a hash value for the shared future.
Reimplemented from original::hashable< sharedFuture< void > >.
|
inlineoverridevirtualnoexcept |
Checks if the shared future is valid (has an associated async wrapper)
Implements original::async::futureBase.
|
inlineoverridevirtual |
Waits until the computation completes.
Implements original::async::futureBase.
|
inlineoverridevirtual |
Waits for the result with a timeout.
| timeout | Maximum time to wait |
Implements original::async::futureBase.