|
| from_resource_sub (coordinator *parent, buffer_ptr buf, observer< value_type > out) |
|
coordinator * | parent () const noexcept override |
| Returns the coordinator this object lives on.
|
|
bool | disposed () const noexcept override |
|
void | dispose () override |
|
void | cancel () override |
| Signals that the observer is no longer interested in receiving items.
|
|
void | request (size_t n) override |
| Signals demand for n more items.
|
|
void | on_producer_ready () override |
| Called to signal that the producer started emitting items.
|
|
void | on_producer_wakeup () override |
| Called to signal to the consumer that the producer added an item to a previously empty source or completed the flow of events.
|
|
void | ref_consumer () const noexcept override |
| Increases the reference count of the consumer.
|
|
void | deref_consumer () const noexcept override |
| Decreases the reference count of the consumer and destroys the object if necessary.
|
|
void | ref_disposable () const noexcept override |
|
void | deref_disposable () const noexcept override |
|
void | ref_coordinated () const noexcept override |
| Increases the reference count of the coordinated.
|
|
void | deref_coordinated () const noexcept override |
| Decreases the reference count of the coordinated and destroys the object if necessary.
|
|
| atomic_ref_counted (const atomic_ref_counted &) |
|
atomic_ref_counted & | operator= (const atomic_ref_counted &) |
|
void | ref () const noexcept |
| Increases reference count by one.
|
|
void | deref () const noexcept |
| Decreases reference count by one and calls request_deletion when it drops to zero.
|
|
bool | unique () const noexcept |
| Queries whether there is exactly one reference.
|
|
size_t | get_reference_count () const noexcept |
| Queries the current reference count for this object.
|
|
disposable | as_disposable () noexcept |
|
template<class Buffer>
class caf::flow::op::from_resource_sub< Buffer >
Reads from an observable buffer and emits the consumed items.
Signals that the observer is no longer interested in receiving items.
Only the observer may call this member function. The difference between cancel
and dispose
is that the latter will call on_complete
on the observer if it has not been called yet. Furthermore, dispose
has to assume that it has been called from outside of the event loop and thus usually schedules an event to clean up the subscription. In contrast, cancel
can assume that it has been called from within the event loop and thus can clean up the subscription immediately.
Implements caf::flow::subscription::impl.