mirror of
https://github.com/Cysharp/UniTask.git
synced 2026-05-18 21:20:10 +00:00
fix ComibineLatest
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -159,6 +159,7 @@ namespace Cysharp.Threading.Tasks.Linq
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
self.running<#= j #> = true; // as complete, no more call MoveNextAsync.
|
||||||
self.completedCount = CompleteCount;
|
self.completedCount = CompleteCount;
|
||||||
self.completionSource.TrySetException(ex);
|
self.completionSource.TrySetException(ex);
|
||||||
return;
|
return;
|
||||||
@@ -168,6 +169,7 @@ namespace Cysharp.Threading.Tasks.Linq
|
|||||||
if (!self.TrySetResult())
|
if (!self.TrySetResult())
|
||||||
{
|
{
|
||||||
if (self.syncRunning) return;
|
if (self.syncRunning) return;
|
||||||
|
self.running<#= j #> = true; // as complete, no more call MoveNextAsync.
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
self.awaiter<#= j #> = self.enumerator<#= j #>.MoveNextAsync().GetAwaiter();
|
self.awaiter<#= j #> = self.enumerator<#= j #>.MoveNextAsync().GetAwaiter();
|
||||||
|
|||||||
Reference in New Issue
Block a user