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

Commit 19d9bd0

Browse files
authored
Fix up ConfiguredValueTaskAwaitable signature for new compiler checks (#15092)
1 parent aa26d41 commit 19d9bd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mscorlib/shared/System/Runtime/CompilerServices/ConfiguredValueTaskAwaitable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public void UnsafeOnCompleted(Action continuation) =>
7474

7575
/// <summary>Gets the task underlying the incomplete <see cref="_value"/>.</summary>
7676
/// <remarks>This method is used when awaiting and IsCompleted returned false; thus we expect the value task to be wrapping a non-null task.</remarks>
77-
(Task, bool) IConfiguredValueTaskAwaiter.GetTask() => (_value.AsTaskExpectNonNull(), _continueOnCapturedContext);
77+
(Task task, bool continueOnCapturedContext) IConfiguredValueTaskAwaiter.GetTask() => (_value.AsTaskExpectNonNull(), _continueOnCapturedContext);
7878
}
7979
}
8080

0 commit comments

Comments
 (0)