This commit is contained in:
neuecc
2019-05-30 19:41:23 +09:00
parent fbe6746850
commit 642cbe6bcd
31 changed files with 765 additions and 66 deletions

View File

@@ -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;
}