pull/557/head
hadashiA 2024-03-28 15:14:10 +09:00
parent caccccb0b5
commit 911c37d4d8
6 changed files with 105 additions and 85 deletions

View File

@ -256,9 +256,11 @@ namespace Cysharp.Threading.Tasks
finally
{
if (!(cancelImmediately && cancellationToken.IsCancellationRequested))
{
TryReturn();
}
}
}
public UniTaskStatus GetStatus(short token)
{
@ -361,9 +363,11 @@ namespace Cysharp.Threading.Tasks
finally
{
if (!(cancelImmediately && cancellationToken.IsCancellationRequested))
{
TryReturn();
}
}
}
public UniTaskStatus GetStatus(short token)
{
@ -468,9 +472,11 @@ namespace Cysharp.Threading.Tasks
finally
{
if (!(cancelImmediately && cancellationToken.IsCancellationRequested))
{
TryReturn();
}
}
}
public UniTaskStatus GetStatus(short token)
{
@ -595,9 +601,11 @@ namespace Cysharp.Threading.Tasks
finally
{
if (!(cancelImmediately && cancellationToken.IsCancellationRequested))
{
TryReturn();
}
}
}
public UniTaskStatus GetStatus(short token)
{
@ -739,9 +747,11 @@ namespace Cysharp.Threading.Tasks
finally
{
if (!(cancelImmediately && cancellationToken.IsCancellationRequested))
{
TryReturn();
}
}
}
public UniTaskStatus GetStatus(short token)
{
@ -865,9 +875,11 @@ namespace Cysharp.Threading.Tasks
finally
{
if (!(cancelImmediately && cancellationToken.IsCancellationRequested))
{
TryReturn();
}
}
}
public UniTaskStatus GetStatus(short token)
{
@ -989,9 +1001,11 @@ namespace Cysharp.Threading.Tasks
finally
{
if (!(cancelImmediately && cancellationToken.IsCancellationRequested))
{
TryReturn();
}
}
}
public UniTaskStatus GetStatus(short token)
{

View File

@ -99,9 +99,11 @@ namespace Cysharp.Threading.Tasks
finally
{
if (!(cancelImmediately && cancellationToken.IsCancellationRequested))
{
TryReturn();
}
}
}
public UniTaskStatus GetStatus(short token)
{
@ -218,9 +220,11 @@ namespace Cysharp.Threading.Tasks
finally
{
if (!(cancelImmediately && cancellationToken.IsCancellationRequested))
{
TryReturn();
}
}
}
public UniTaskStatus GetStatus(short token)
{
@ -336,9 +340,11 @@ namespace Cysharp.Threading.Tasks
finally
{
if (!(cancelImmediately && cancellationToken.IsCancellationRequested))
{
TryReturn();
}
}
}
public UniTaskStatus GetStatus(short token)
{
@ -450,9 +456,11 @@ namespace Cysharp.Threading.Tasks
finally
{
if (!(cancelImmediately && cancellationToken.IsCancellationRequested))
{
TryReturn();
}
}
}
void IUniTaskSource.GetResult(short token)
{
@ -587,9 +595,11 @@ namespace Cysharp.Threading.Tasks
finally
{
if (!(cancelImmediately && cancellationToken.IsCancellationRequested))
{
TryReturn();
}
}
}
void IUniTaskSource.GetResult(short token)
{

View File

@ -159,9 +159,11 @@ namespace Cysharp.Threading.Tasks
finally
{
if (!(cancelImmediately && cancellationToken.IsCancellationRequested))
{
TryReturn();
}
}
}
void IUniTaskSource.GetResult(short token)
{
@ -227,10 +229,9 @@ namespace Cysharp.Threading.Tasks
{
if (completed)
{
TryReturn();
return;
}
else
{
completed = true;
if (cancellationToken.IsCancellationRequested)
{
@ -243,7 +244,6 @@ namespace Cysharp.Threading.Tasks
}
}
}
}
}
#endif

View File

@ -94,9 +94,11 @@ namespace Cysharp.Threading.Tasks
finally
{
if (!(cancelImmediately && cancellationToken.IsCancellationRequested))
{
TryReturn();
}
}
}
void IUniTaskSource.GetResult(short token)
{

View File

@ -155,9 +155,11 @@ namespace Cysharp.Threading.Tasks
finally
{
if (!(cancelImmediately && cancellationToken.IsCancellationRequested))
{
TryReturn();
}
}
}
public UniTaskStatus GetStatus(short token)
@ -220,10 +222,8 @@ namespace Cysharp.Threading.Tasks
{
if (completed)
{
TryReturn();
return;
}
else
{
completed = true;
if (cancellationToken.IsCancellationRequested)
{
@ -235,7 +235,6 @@ namespace Cysharp.Threading.Tasks
}
}
}
}
#endregion
@ -382,9 +381,11 @@ namespace Cysharp.Threading.Tasks
finally
{
if (!(cancelImmediately && cancellationToken.IsCancellationRequested))
{
TryReturn();
}
}
}
void IUniTaskSource.GetResult(short token)
{
@ -451,10 +452,8 @@ namespace Cysharp.Threading.Tasks
{
if (completed)
{
TryReturn();
return;
}
else
{
completed = true;
if (cancellationToken.IsCancellationRequested)
{
@ -466,7 +465,6 @@ namespace Cysharp.Threading.Tasks
}
}
}
}
#endregion
@ -614,9 +612,11 @@ namespace Cysharp.Threading.Tasks
finally
{
if (!(cancelImmediately && cancellationToken.IsCancellationRequested))
{
TryReturn();
}
}
}
void IUniTaskSource.GetResult(short token)
{
@ -683,10 +683,8 @@ namespace Cysharp.Threading.Tasks
{
if (completed)
{
TryReturn();
return;
}
else
{
completed = true;
if (cancellationToken.IsCancellationRequested)
{
@ -698,7 +696,6 @@ namespace Cysharp.Threading.Tasks
}
}
}
}
#endregion
#endif
@ -847,9 +844,11 @@ namespace Cysharp.Threading.Tasks
finally
{
if (!(cancelImmediately && cancellationToken.IsCancellationRequested))
{
TryReturn();
}
}
}
void IUniTaskSource.GetResult(short token)
{
@ -916,10 +915,8 @@ namespace Cysharp.Threading.Tasks
{
if (completed)
{
TryReturn();
return;
}
else
{
completed = true;
if (cancellationToken.IsCancellationRequested)
{
@ -931,7 +928,6 @@ namespace Cysharp.Threading.Tasks
}
}
}
}
#endregion
#endif
@ -1096,9 +1092,11 @@ namespace Cysharp.Threading.Tasks
finally
{
if (!(cancelImmediately && cancellationToken.IsCancellationRequested))
{
TryReturn();
}
}
}
void IUniTaskSource.GetResult(short token)
{
@ -1173,10 +1171,8 @@ namespace Cysharp.Threading.Tasks
{
if (completed)
{
TryReturn();
return;
}
else
{
completed = true;
if (cancellationToken.IsCancellationRequested)
{
@ -1192,7 +1188,6 @@ namespace Cysharp.Threading.Tasks
}
}
}
}
#endregion
#endif

View File

@ -230,9 +230,11 @@ namespace Cysharp.Threading.Tasks
finally
{
if (!(cancelImmediately && cancellationToken.IsCancellationRequested))
{
TryReturn();
}
}
}
<# if (!IsVoid(t)) { #>
void IUniTaskSource.GetResult(short token)
@ -315,10 +317,8 @@ namespace Cysharp.Threading.Tasks
{
if (completed)
{
TryReturn();
return;
}
else
{
completed = true;
if (cancellationToken.IsCancellationRequested)
{
@ -341,7 +341,6 @@ namespace Cysharp.Threading.Tasks
<# } #>
}
}
}
#endregion
<# if(IsUnityWebRequest(t) || IsAssetBundleModule(t)) { #>