summaryrefslogtreecommitdiff
path: root/external/rx/Ix/NET/System.Interactive/IAwaitable.cs
diff options
context:
space:
mode:
Diffstat (limited to 'external/rx/Ix/NET/System.Interactive/IAwaitable.cs')
-rw-r--r--external/rx/Ix/NET/System.Interactive/IAwaitable.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/external/rx/Ix/NET/System.Interactive/IAwaitable.cs b/external/rx/Ix/NET/System.Interactive/IAwaitable.cs
new file mode 100644
index 0000000000..87f7ecf67d
--- /dev/null
+++ b/external/rx/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