public ValueTask<FlushResult> WriteRstStreamAsync(Http2ErrorCode error) { lock (_dataWriterLock) { // Always send the reset even if the response body is _completed. The request body may not have completed yet. Stop(); return _frameWriter.WriteRstStreamAsync(StreamId, error); } }