You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- This assembly should never be placed inbox as it is only for downlevel compatibility. -->
7
6
<PackageDescription>Provides the IAsyncEnumerable<T> and IAsyncDisposable interfaces and helper types for .NET Standard 2.0. This package is not required starting with .NET Standard 2.1 and .NET Core 3.0.
Copy file name to clipboardExpand all lines: src/libraries/Microsoft.Bcl.AsyncInterfaces/src/System/Threading/Tasks/Sources/ManualResetValueTaskSourceCore.cs
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -26,22 +26,22 @@ public struct ManualResetValueTaskSourceCore<TResult>
26
26
/// or <see cref="ManualResetValueTaskSourceCoreShared.s_sentinel"/> if the operation completed before a callback was supplied,
27
27
/// or null if a callback hasn't yet been provided and the operation hasn't yet completed.
28
28
/// </summary>
29
-
privateAction<object>_continuation;
29
+
privateAction<object?>?_continuation;
30
30
/// <summary>State to pass to <see cref="_continuation"/>.</summary>
31
-
privateobject_continuationState;
31
+
privateobject?_continuationState;
32
32
/// <summary><see cref="ExecutionContext"/> to flow to the callback, or null if no flowing is required.</summary>
33
-
privateExecutionContext_executionContext;
33
+
privateExecutionContext?_executionContext;
34
34
/// <summary>
35
35
/// A "captured" <see cref="SynchronizationContext"/> or <see cref="TaskScheduler"/> with which to invoke the callback,
36
36
/// or null if no special context is required.
37
37
/// </summary>
38
-
privateobject_capturedContext;
38
+
privateobject?_capturedContext;
39
39
/// <summary>Whether the current operation has completed.</summary>
40
40
privatebool_completed;
41
41
/// <summary>The result with which the operation succeeded, or the default value if it hasn't yet completed or failed.</summary>
42
-
privateTResult_result;
42
+
privateTResult?_result;
43
43
/// <summary>The exception with which the operation failed, or null if it hasn't yet completed or completed successfully.</summary>
44
-
privateExceptionDispatchInfo_error;
44
+
privateExceptionDispatchInfo?_error;
45
45
/// <summary>The current version of this value, used to help prevent misuse.</summary>
46
46
privateshort_version;
47
47
@@ -105,15 +105,15 @@ public TResult GetResult(short token)
105
105
}
106
106
107
107
_error?.Throw();
108
-
return_result;
108
+
return_result!;
109
109
}
110
110
111
111
/// <summary>Schedules the continuation action for this operation.</summary>
112
112
/// <param name="continuation">The continuation to invoke when the operation has completed.</param>
113
113
/// <param name="state">The state object to pass to <paramref name="continuation"/> when it's invoked.</param>
114
114
/// <param name="token">Opaque value that was provided to the <see cref="ValueTask"/>'s constructor.</param>
115
115
/// <param name="flags">The flags describing the behavior of the continuation.</param>
0 commit comments