Updated TasksExtensions

This commit is contained in:
Максим Багрянцев 2020-04-28 16:08:02 +03:00
parent f56ea098a5
commit ea7acf2140

View file

@ -7,10 +7,7 @@ namespace FFMpegCore.Test
{ {
static class TasksExtensions static class TasksExtensions
{ {
public static T WaitForResult<T>(this Task<T> task) public static T WaitForResult<T>(this Task<T> task) =>
{ task.ConfigureAwait(false).GetAwaiter().GetResult();
task.Wait();
return task.Result;
}
} }
} }