mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
Updated TasksExtensions
This commit is contained in:
parent
f56ea098a5
commit
ea7acf2140
1 changed files with 2 additions and 5 deletions
|
@ -7,10 +7,7 @@ namespace FFMpegCore.Test
|
|||
{
|
||||
static class TasksExtensions
|
||||
{
|
||||
public static T WaitForResult<T>(this Task<T> task)
|
||||
{
|
||||
task.Wait();
|
||||
return task.Result;
|
||||
}
|
||||
public static T WaitForResult<T>(this Task<T> task) =>
|
||||
task.ConfigureAwait(false).GetAwaiter().GetResult();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue