master
neuecc 2020-06-12 10:46:29 +09:00
parent ded9a561db
commit de5951f208
1 changed files with 11 additions and 8 deletions

View File

@ -248,6 +248,8 @@ namespace Cysharp.Threading.Tasks.Linq
return current; return current;
} }
lock (queuedResult)
{
if (queuedResult.Count != 0) if (queuedResult.Count != 0)
{ {
current = queuedResult.Dequeue(); current = queuedResult.Dequeue();
@ -260,6 +262,7 @@ namespace Cysharp.Threading.Tasks.Linq
} }
} }
} }
}
public UniTask<bool> MoveNextAsync() public UniTask<bool> MoveNextAsync()
{ {