mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-22 08:20:18 +00:00
update operation system
This commit is contained in:
@@ -95,9 +95,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()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user