mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
16 lines
340 B
C#
16 lines
340 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Remotely.Shared.Extensions
|
|
{
|
|
public static class TaskExtensions
|
|
{
|
|
public static T ToResult<T>(this Task<T> task)
|
|
{
|
|
return task.ConfigureAwait(false).GetAwaiter().GetResult();
|
|
}
|
|
}
|
|
}
|