Remotely/Shared/Extensions/TaskExtensions.cs
2021-07-29 07:57:31 -07:00

16 lines
340 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Remotely.Shared.Extensions
{
public static class TaskExtensions
{
public static T ToResult<T>(this Task<T> task)
{
return task.ConfigureAwait(false).GetAwaiter().GetResult();
}
}
}