using System.Threading.Tasks; namespace ZeroLevel.Services.Async.Internal { internal static class TaskExtensions { public static async Task WithYield(this Task task) { var result = await task.ConfigureAwait(false); await Task.Yield(); return result; } } }