NUnit.Framework.Internal.AwaitAdapter
Adapts various styles of asynchronous waiting to a common API.
namespace NUnit.Framework.Internal
{
internal abstract class AwaitAdapter
{
public abstract bool IsCompleted { get; }
public abstract void OnCompleted(Action action);
public abstract void BlockUntilCompleted();
public abstract object GetResult();
public static bool IsAwaitable(Type awaitableType);
public static Type GetResultType(Type awaitableType);
public static AwaitAdapter FromAwaitable(object awaitable);
protected AwaitAdapter();
}
}