template <typename T>
nxt::detail::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

auto bound(T value) const →  detail::bound_publisher<T>
auto disconnected() const →  bool noexcept
auto operator=(const publisher& other) →  publisher& noexcept
auto operator=(publisher&& other) →  publisher& noexcept
auto push(T value) const →  nxt::task<void>

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::disconnected if the signal has been closed.