FFMpegCore/FFMpegCore.Test/TasksExtensions.cs
Максим Багрянцев ea7acf2140 Updated TasksExtensions
2020-04-28 16:08:02 +03:00

13 lines
304 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace FFMpegCore.Test
{
static class TasksExtensions
{
public static T WaitForResult<T>(this Task<T> task) =>
task.ConfigureAwait(false).GetAwaiter().GetResult();
}
}