function GrpcStream.cancelled
Returns
True if the client has cancelled the originating call. Same signal as rpc.cancelled() from the call this stream came from.
function GrpcStream.complete
Close the stream. No-arg = success;
status = = error. Subsequent push calls after complete raise.
function GrpcStream.push
Push one message to the response stream. Runtime-typechecked against the RPC’s response type; mismatched types raise.
Blocks on backpressure. After the client has cancelled, push is
best-effort (the message is dropped, no error raised) — producer
loops should poll
stream.cancelled() to bail out.
