|
C++ Actor Framework 1.0.0
|
Similar to an observable, but always emits either a single value or an error.
More...
#include <single.hpp>
Public Types | |
| using | output_type = T |
Public Member Functions | |
| single (intrusive_ptr< op::base< T > > pimpl) noexcept | |
| single & | operator= (std::nullptr_t) noexcept |
| single (single &&) noexcept=default | |
| single (const single &) noexcept=default | |
| single & | operator= (single &&) noexcept=default |
| single & | operator= (const single &) noexcept=default |
| observable< T > | as_observable () && |
| observable< T > | as_observable () const & |
| template<class OnSuccess , class OnError > | |
| disposable | subscribe (OnSuccess on_success, OnError on_error) |
| bool | valid () const noexcept |
| operator bool () const noexcept | |
| bool | operator! () const noexcept |
| void | swap (single &other) |
Similar to an observable, but always emits either a single value or an error.