mirror of https://github.com/Cysharp/UniTask
lock q
parent
ded9a561db
commit
de5951f208
|
@ -248,6 +248,8 @@ namespace Cysharp.Threading.Tasks.Linq
|
|||
return current;
|
||||
}
|
||||
|
||||
lock (queuedResult)
|
||||
{
|
||||
if (queuedResult.Count != 0)
|
||||
{
|
||||
current = queuedResult.Dequeue();
|
||||
|
@ -260,6 +262,7 @@ namespace Cysharp.Threading.Tasks.Linq
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public UniTask<bool> MoveNextAsync()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue