| 1 |
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. |
| 2 |
#if HAS_AWAIT |
| 3 |
using System; |
| 4 |
using System.Collections.Generic; |
| 5 |
using System.Diagnostics; |
| 6 |
using System.Runtime.CompilerServices; |
| 7 |
using System.Threading; |
| 8 |
using System.Threading.Tasks; |
| 9 |
|
| 10 |
namespace System.Linq |
| 11 |
{ |
| 12 |
public interface IAwaitable |
| 13 |
{ |
| 14 |
IAwaiter GetAwaiter(); |
| 15 |
} |
| 16 |
|
| 17 |
public interface IAwaiter : ICriticalNotifyCompletion |
| 18 |
{ |
| 19 |
bool IsCompleted { get; } |
| 20 |
void GetResult(); |
| 21 |
} |
| 22 |
} |
| 23 |
#endif |