2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 05:23:13 +00:00

AsyncQueue Fix

This commit is contained in:
2020-02-08 11:57:00 +03:00
parent 741819e11c
commit 3205499747
5 changed files with 20 additions and 14 deletions

View File

@ -66,6 +66,7 @@ namespace Esyur.Core
if (list[i].Ready)
{
Trigger(list[i].Result);
resultReady = false;
list.RemoveAt(i);
i--;
}

View File

@ -45,8 +45,7 @@ namespace Esyur.Core
where TAwaiter : INotifyCompletion
where TStateMachine : IAsyncStateMachine
{
Console.WriteLine("AwaitOnCompleted");
awaiter.OnCompleted(stateMachine.MoveNext);
}
public void AwaitUnsafeOnCompleted<TAwaiter, TStateMachine>(
@ -54,8 +53,7 @@ namespace Esyur.Core
where TAwaiter : ICriticalNotifyCompletion
where TStateMachine : IAsyncStateMachine
{
Console.WriteLine("AwaitUnsafeOnCompleted");
awaiter.UnsafeOnCompleted(stateMachine.MoveNext);
}
public AsyncReply Task

View File

@ -45,8 +45,7 @@ namespace Esyur.Core
where TAwaiter : INotifyCompletion
where TStateMachine : IAsyncStateMachine
{
Console.WriteLine("AwaitOnCompleted");
awaiter.OnCompleted(stateMachine.MoveNext);
}
public void AwaitUnsafeOnCompleted<TAwaiter, TStateMachine>(
@ -54,8 +53,7 @@ namespace Esyur.Core
where TAwaiter : ICriticalNotifyCompletion
where TStateMachine : IAsyncStateMachine
{
Console.WriteLine("AwaitUnsafeOnCompleted");
awaiter.UnsafeOnCompleted(stateMachine.MoveNext);
}
public AsyncReply<T> Task