Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
hadashiA committed Mar 28, 2024
1 parent 911c37d commit 938ddd5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ public static IUniTaskSource Create(AsyncOperationHandle handle, PlayerLoopTimin
result.cancellationToken = cancellationToken;
result.cancelImmediately = cancelImmediately;
result.autoReleaseWhenCanceled = autoReleaseWhenCanceled;
result.completed = false;

if (cancelImmediately && cancellationToken.CanBeCanceled)
{
Expand Down Expand Up @@ -201,7 +202,9 @@ public void GetResult(short token)
finally
{
if (!(cancelImmediately && cancellationToken.IsCancellationRequested))
{
TryReturn();
}
}
}

Expand Down

0 comments on commit 938ddd5

Please sign in to comment.