aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/Grpc.Core/IAsyncStreamReader.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/csharp/Grpc.Core/IAsyncStreamReader.cs')
-rw-r--r--src/csharp/Grpc.Core/IAsyncStreamReader.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/csharp/Grpc.Core/IAsyncStreamReader.cs b/src/csharp/Grpc.Core/IAsyncStreamReader.cs
index 61cf57f7e0..699741cd05 100644
--- a/src/csharp/Grpc.Core/IAsyncStreamReader.cs
+++ b/src/csharp/Grpc.Core/IAsyncStreamReader.cs
@@ -44,9 +44,10 @@ namespace Grpc.Core
/// </summary>
/// <typeparam name="T"></typeparam>
public interface IAsyncStreamReader<T>
+ where T : class
{
/// <summary>
- /// Reads a single message. Returns default(T) if the last message was already read.
+ /// Reads a single message. Returns null if the last message was already read.
/// A following read can only be started when the previous one finishes.
/// </summary>
Task<T> ReadNext();