Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 31bb136

Browse files
committed
Mrvts handles the EC
1 parent 2bccb6e commit 31bb136

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/System.IO.Pipelines/src/System/IO/Pipelines/StreamPipeReader.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -493,14 +493,7 @@ void IValueTaskSource<ReadResult>.OnCompleted(Action<object> continuation, objec
493493
ValidateReading();
494494
_readMrvts.OnCompleted(continuation, state, token, flags);
495495

496-
if ((flags & ValueTaskSourceOnCompletedFlags.FlowExecutionContext) != 0)
497-
{
498-
_readAwaiter.OnCompleted(_onReadCompleted);
499-
}
500-
else
501-
{
502-
_readAwaiter.UnsafeOnCompleted(_onReadCompleted);
503-
}
496+
_readAwaiter.UnsafeOnCompleted(_onReadCompleted);
504497
}
505498

506499
[MethodImpl(MethodImplOptions.AggressiveInlining)]

0 commit comments

Comments
 (0)