Is StreamReader.Read() a blocking method?

1.4k views Asked by At

Is StreamReader.Read() a blocking method especially if applied to a NetworkStream?

1

There are 1 answers

2
Jon Skeet On BEST ANSWER

Yes - it blocks until one of the follow conditions is satisfied:

  • A character is read
  • The end of the underlying stream is reached
  • The underlying stream throws an exception