class StreamWriterBase
C++
class StreamWriterBase
Type-erased StreamWriter, as the runtime stores it.
include/nprpc/stream_base.hpp:24
Methods
virtual void cancel() = 0
Stops the producer, e.g. when the reader cancels.
include/nprpc/stream_base.hpp:37
std::chrono::milliseconds interval() const
Not documented.
include/nprpc/stream_base.hpp:30
virtual bool is_done() const = 0
Whether the producer has finished.
include/nprpc/stream_base.hpp:35
virtual void resume() = 0
Runs the producer until it next waits for credits or finishes.
include/nprpc/stream_base.hpp:33
void set_interval(std::chrono::milliseconds interval)
Minimum time between generated chunks; zero keeps credit-driven pacing.
include/nprpc/stream_base.hpp:29