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:
@ -66,6 +66,7 @@ namespace Esyur.Core
|
||||
if (list[i].Ready)
|
||||
{
|
||||
Trigger(list[i].Result);
|
||||
resultReady = false;
|
||||
list.RemoveAt(i);
|
||||
i--;
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user