mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-23 09:10:11 +00:00
update operation system
This commit is contained in:
@@ -90,15 +90,14 @@ namespace YooAsset
|
||||
Status = EOperationStatus.Failed;
|
||||
Error = "user abort";
|
||||
YooLogger.Warning($"Async operaiton has been abort : {this.GetType().Name}");
|
||||
SetFinish();
|
||||
}
|
||||
}
|
||||
internal void SetFinish()
|
||||
{
|
||||
Progress = 1f;
|
||||
_callback?.Invoke(this);
|
||||
if (_taskCompletionSource != null)
|
||||
_taskCompletionSource.TrySetResult(null);
|
||||
_callback?.Invoke(this);
|
||||
}
|
||||
internal void SetStart()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user