#if NET20 || NET30 || NET35 || !NET_4_6
using System.Runtime.CompilerServices;
namespace System.Threading.Tasks
{
public partial class Task
{
///
/// Creates an awaitable that asynchronously yields back to the current context when awaited.
///
///
///
/// A context that, when awaited, will asynchronously transition back into the current context.
/// If SynchronizationContext.Current is non-null, that is treated as the current context.
/// Otherwise, TaskScheduler.Current is treated as the current context.
///
///
public static YieldAwaitable Yield()
{
return new YieldAwaitable();
}
}
}
#endif