FFMpegCore/FFMpegCore.Test/TasksExtensions.cs

17 lines
313 B
C#
Raw Normal View History

2020-04-28 14:21:48 +02:00
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.Wait();
return task.Result;
}
}
}