2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 13:33:13 +00:00
This commit is contained in:
2022-03-09 21:55:30 +03:00
parent 530df018ec
commit 9a174f406f
106 changed files with 5166 additions and 4398 deletions

View File

@ -6,15 +6,15 @@ using System.Threading.Tasks;
namespace Esiur.Core;
public class AsyncBagAwaiter : INotifyCompletion
public class AsyncBagAwaiter<T> : INotifyCompletion
{
Action callback = null;
AsyncException exception = null;
object[] result;
T[] result;
public AsyncBagAwaiter(AsyncBag reply)
public AsyncBagAwaiter(AsyncBag<T> reply)
{
reply.Then(x =>
{
@ -29,7 +29,7 @@ public class AsyncBagAwaiter : INotifyCompletion
});
}
public object[] GetResult()
public T[] GetResult()
{
if (exception != null)
throw exception;