mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-14 02:04:14 +01:00
934db731f1
Former-commit-id: ea7acf2140
13 lines
304 B
C#
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();
|
|
}
|
|
}
|