mlyDevMerge1.5.7
hevinci 2023-09-26 18:51:00 +08:00 committed by QiJing
parent bd3f57ff0c
commit c649068f6b
1 changed files with 1 additions and 1 deletions

View File

@ -77,9 +77,9 @@ namespace YooAsset
internal void SetFinish() internal void SetFinish()
{ {
Progress = 1f; Progress = 1f;
_callback?.Invoke(this); //注意如果完成回调内发生异常会导致Task无限期等待
if (_taskCompletionSource != null) if (_taskCompletionSource != null)
_taskCompletionSource.TrySetResult(null); _taskCompletionSource.TrySetResult(null);
_callback?.Invoke(this);
} }
internal void SetStart() internal void SetStart()
{ {