mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
bd55018f4f
Former-commit-id: ec043ef075
10 lines
237 B
C#
10 lines
237 B
C#
using System.Threading.Tasks;
|
|
|
|
namespace FFMpegCore.Test
|
|
{
|
|
static class TasksExtensions
|
|
{
|
|
public static T WaitForResult<T>(this Task<T> task) =>
|
|
task.ConfigureAwait(false).GetAwaiter().GetResult();
|
|
}
|
|
}
|