FFMpegCore/FFMpegCore.Test/TasksExtensions.cs

11 lines
237 B
C#
Raw Normal View History

2020-05-08 11:07:51 +02:00
using System.Threading.Tasks;
2020-04-28 14:21:48 +02:00
namespace FFMpegCore.Test
{
static class TasksExtensions
{
2020-04-28 15:08:02 +02:00
public static T WaitForResult<T>(this Task<T> task) =>
task.ConfigureAwait(false).GetAwaiter().GetResult();
2020-04-28 14:21:48 +02:00
}
}