예제 #1
0
파일: Pipe.cs 프로젝트: pprice/corefxlab
 public override PipeAwaiter <ReadResult> ReadAsync(CancellationToken cancellationToken = default)
 {
     return(_pipe.ReadAsync(cancellationToken));
 }
 public override ValueTask <ReadResult> ReadAsync(CancellationToken cancellationToken = default) => _pipe.ReadAsync(cancellationToken);
예제 #3
0
 /// <summary>
 /// Asynchronously reads a sequence of bytes from the current <see cref="PipelineReader"/>.
 /// </summary>
 /// <returns>A <see cref="ReadableBufferAwaitable"/> representing the asynchronous read operation.</returns>
 public ReadableBufferAwaitable ReadAsync() => _pipe.ReadAsync();