// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT License.
// See the LICENSE file in the project root for more information.
using System.Runtime.CompilerServices;
namespace System.Linq
{
///
/// Interface for an awaiter of an asynchronous operation.
///
public interface IAwaiter : ICriticalNotifyCompletion
{
///
/// Gets a Boolean value indicating whether the asynchronous operation has completed.
///
bool IsCompleted { get; }
///
/// Gets the result of the asynchronous operation.
///
///
/// This method may cause blocking if invoked prior to returning true.
/// Completion of the asynchronous operation can be observed using .
///
void GetResult();
}
}