Skip to content

Commit 0423fe0

Browse files
committed
Rename CreateCancelCommand to WithCancellation.
1 parent 6887f51 commit 0423fe0

File tree

1 file changed

+2
-2
lines changed
  • src/UnityMvvmToolkit.UnityPackage/Assets/Plugins/UnityMvvmToolkit/Runtime/External/UniTask/Extensions

1 file changed

+2
-2
lines changed

src/UnityMvvmToolkit.UnityPackage/Assets/Plugins/UnityMvvmToolkit/Runtime/External/UniTask/Extensions/AsyncCommandExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace UnityMvvmToolkit.UniTask.Extensions
88

99
public static class AsyncCommandExtensions
1010
{
11-
public static IAsyncCommand CreateCancelCommand(this IAsyncCommand asyncCommand)
11+
public static IAsyncCommand WithCancellation(this IAsyncCommand asyncCommand)
1212
{
1313
if (asyncCommand == null)
1414
{
@@ -18,7 +18,7 @@ public static IAsyncCommand CreateCancelCommand(this IAsyncCommand asyncCommand)
1818
return new AsyncCommandWithCancellation(asyncCommand);
1919
}
2020

21-
public static IAsyncCommand<T> CreateCancelCommand<T>(this IAsyncCommand<T> asyncCommand)
21+
public static IAsyncCommand<T> WithCancellation<T>(this IAsyncCommand<T> asyncCommand)
2222
{
2323
if (asyncCommand == null)
2424
{

0 commit comments

Comments
 (0)