mirror of
https://github.com/Cysharp/UniTask.git
synced 2026-05-15 19:40:09 +00:00
ok all
This commit is contained in:
@@ -168,13 +168,16 @@ namespace UniRx.Async
|
||||
}
|
||||
}
|
||||
|
||||
asyncOperation = null; // remove reference.
|
||||
|
||||
if (continuationAction != null)
|
||||
{
|
||||
asyncOperation.completed -= continuationAction;
|
||||
asyncOperation = null; // remove reference.
|
||||
continuationAction = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
asyncOperation = null; // remove reference.
|
||||
}
|
||||
}
|
||||
|
||||
public void OnCompleted(Action continuation)
|
||||
@@ -316,13 +319,17 @@ namespace UniRx.Async
|
||||
}
|
||||
|
||||
this.result = asyncOperation.asset;
|
||||
asyncOperation = null; // remove reference.
|
||||
|
||||
if (continuationAction != null)
|
||||
{
|
||||
asyncOperation.completed -= continuationAction;
|
||||
asyncOperation = null; // remove reference.
|
||||
continuationAction = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
asyncOperation = null; // remove reference.
|
||||
}
|
||||
|
||||
return this.result;
|
||||
}
|
||||
@@ -576,13 +583,18 @@ namespace UniRx.Async
|
||||
}
|
||||
|
||||
this.result = asyncOperation.webRequest;
|
||||
asyncOperation = null; // remove reference.
|
||||
|
||||
if (continuationAction != null)
|
||||
{
|
||||
asyncOperation.completed -= continuationAction;
|
||||
asyncOperation = null; // remove reference.
|
||||
continuationAction = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
asyncOperation = null; // remove reference.
|
||||
}
|
||||
|
||||
|
||||
return this.result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user