Is StreamReader.Read() a blocking method?

1.5k Views Asked by At

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

1

There are 1 best solutions below

2
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