public Task Write100ContinueAsync() { lock (_dataWriterLock) { if (_completed) { return(Task.CompletedTask); } return(_frameWriter.Write100ContinueAsync(_streamId)); } }
public ValueTask<FlushResult> Write100ContinueAsync() { lock (_dataWriterLock) { ThrowIfSuffixSentOrCompleted(); if (_streamCompleted) { return default; } return _frameWriter.Write100ContinueAsync(StreamId); } }