Innovenergy_trunk/csharp/Lib/Utils/Try/TryAsync.cs

14 lines
240 B
C#

namespace InnovEnergy.Lib.Utils.Try;
[Obsolete]
public partial class TryAsync<R>
{
private Func<Task<R>> Func { get; }
internal TryAsync(Func<Task<R>> func)
{
Func = func;
}
public Task<R> Throw() => Func();
}