Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/rx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Ix/NET/System.Interactive/IAwaitable.cs')
-rw-r--r--Ix/NET/System.Interactive/IAwaitable.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/Ix/NET/System.Interactive/IAwaitable.cs b/Ix/NET/System.Interactive/IAwaitable.cs
new file mode 100644
index 0000000..87f7ecf
--- /dev/null
+++ b/Ix/NET/System.Interactive/IAwaitable.cs
@@ -0,0 +1,23 @@
+// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
+#if HAS_AWAIT
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Runtime.CompilerServices;
+using System.Threading;
+using System.Threading.Tasks;
+
+namespace System.Linq
+{
+ public interface IAwaitable
+ {
+ IAwaiter GetAwaiter();
+ }
+
+ public interface IAwaiter : ICriticalNotifyCompletion
+ {
+ bool IsCompleted { get; }
+ void GetResult();
+ }
+}
+#endif \ No newline at end of file