#include <nxt/signal.hpp>
template <typename T>
publisher class
A copyable write-endpoint for a signal. Multiple producers can hold copies; the sender side closes when the last copy is destroyed.
Constructors, destructors, conversion operators
- publisher(const publisher& other) noexcept
- publisher(publisher&& other) noexcept
- ~publisher()
Public functions
Function documentation
template <typename T>
nxt:: task<void> nxt::detail::publisher::push(T value) const
Deliver a value to the current waiter, if any. Drops the value if no waiter is pending. Throws nxt:: if the signal has been closed.