Innovenergy_trunk/csharp/Lib/Utils/AsyncDelegates.cs

17 lines
662 B
C#
Raw Normal View History

2023-02-16 12:57:06 +00:00
namespace InnovEnergy.Lib.Utils;
public delegate Task<R> Async<R>();
public delegate Task<R> Async<in I1, R>(I1 i1);
public delegate Task<R> Async<in I1, in I2, R>(I1 i1, I2 i2);
public delegate Task<R> Async<in I1, in I2, in I3, R>(I1 i1, I2 i2, I3 i3);
public delegate Task<R> Async<in I1, in I2, in I3, in I4, R>(I1 i1, I2 i2, I3 i3, I4 i4);
public delegate Task AsyncAction();
public delegate Task AsyncAction<in I1>(I1 i1);
public delegate Task AsyncAction<in I1, in I2>(I1 i1, I2 i2);
public delegate Task AsyncAction<in I1, in I2, in I3>(I1 i1, I2 i2, I3 i3);
public delegate Task AsyncAction<in I1, in I2, in I3, in I4>(I1 i1, I2 i2, I3 i3, I4 i4);