1
0
mirror of synced 2025-12-19 18:06:02 -05:00
Files
core/release-notes/2.1/api-diff/2.0-vs-2.1_System.Threading.Tasks.Sources.md
Rich Lander f82833aa44 Update dotnetcli domain -- 2.x and 3.x (#9687)
* Fix linter errors

* Fix linter errors

* Fix linter errors

* Fix linter errors

* Fix linter errors

* Fix linter errors

* Fix linter errors

* Fix linter errors

* Fix linter errors

* Update linter errors
2025-01-13 09:39:23 -08:00

922 B

System.Threading.Tasks.Sources

+namespace System.Threading.Tasks.Sources {
+    public interface IValueTaskSource {
+        void GetResult(short token);
+        ValueTaskSourceStatus GetStatus(short token);
+        void OnCompleted(Action<object> continuation, object state, short token, ValueTaskSourceOnCompletedFlags flags);
+    }
+    public interface IValueTaskSource<out TResult> {
+        TResult GetResult(short token);
+        ValueTaskSourceStatus GetStatus(short token);
+        void OnCompleted(Action<object> continuation, object state, short token, ValueTaskSourceOnCompletedFlags flags);
+    }
+    public enum ValueTaskSourceOnCompletedFlags {
+        FlowExecutionContext = 2,
+        None = 0,
+        UseSchedulingContext = 1,
+    }
+    public enum ValueTaskSourceStatus {
+        Canceled = 3,
+        Faulted = 2,
+        Pending = 0,
+        Succeeded = 1,
+    }
+}