Skip to content

Commit 692f90f

Browse files
committed
Fix queue clear issue.
1 parent c83e20a commit 692f90f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/UnityMvvmToolkit.UnityPackage/Assets/Plugins/UnityMvvmToolkit/Runtime/External/UniTask/Internal/AsyncCommandWithCancellation.T.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public async UniTask ExecuteAsync(T parameter, CancellationToken cancellationTok
6060

6161
while (_runningCommands.TryDequeue(out var asyncCommand))
6262
{
63-
await asyncCommand;
63+
await asyncCommand.SuppressCancellationThrow();
6464
}
6565
}
6666
finally

src/UnityMvvmToolkit.UnityPackage/Assets/Plugins/UnityMvvmToolkit/Runtime/External/UniTask/Internal/AsyncCommandWithCancellation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public async UniTask ExecuteAsync(CancellationToken cancellationToken = default)
6060

6161
while (_runningCommands.TryDequeue(out var asyncCommand))
6262
{
63-
await asyncCommand;
63+
await asyncCommand.SuppressCancellationThrow();
6464
}
6565
}
6666
finally

0 commit comments

Comments
 (0)