mirror of
https://github.com/Cysharp/UniTask.git
synced 2026-05-15 11:30:09 +00:00
Reduce the times of AwakeMonitor checking
This commit is contained in:
@@ -83,7 +83,7 @@ namespace Cysharp.Threading.Tasks.Triggers
|
||||
|
||||
public bool MoveNext()
|
||||
{
|
||||
if (trigger.called) return false;
|
||||
if (trigger.called || trigger.awakeCalled) return false;
|
||||
if (trigger == null)
|
||||
{
|
||||
trigger.OnDestroy();
|
||||
|
||||
Reference in New Issue
Block a user