NPRPC docs

class StreamWriterBase

C++

class StreamWriterBase

Type-erased StreamWriter, as the runtime stores it.

include/nprpc/stream_base.hpp:23

Methods

virtual void cancel() = 0

Stops the producer, e.g. when the reader cancels.

include/nprpc/stream_base.hpp:32

virtual bool is_done() const = 0

Whether the producer has finished.

include/nprpc/stream_base.hpp:30

virtual void resume() = 0

Runs the producer until it next waits for credits or finishes.

include/nprpc/stream_base.hpp:28