Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit 07a178c

Browse files
committed
Revert AsyncValueCommandSupport
1 parent c4fc353 commit 07a178c

File tree

2 files changed

+0
-139
lines changed

2 files changed

+0
-139
lines changed

src/CommunityToolkit/Xamarin.CommunityToolkit.UnitTests/ObjectModel/ICommandTests/CommandFactoryTests/CommandFactory_AsyncValueCommand_Tests.cs

Lines changed: 0 additions & 115 deletions
This file was deleted.

src/CommunityToolkit/Xamarin.CommunityToolkit/ObjectModel/CommandFactory.shared.cs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -41,30 +41,6 @@ public static IAsyncCommand<TExecute, TCanExecute> Create<TExecute, TCanExecute>
4141
bool allowsMultipleExecutions = true) =>
4242
new AsyncCommand<TExecute, TCanExecute>(execute, canExecute, onException, continueOnCapturedContext, allowsMultipleExecutions);
4343

44-
public static IAsyncValueCommand Create(
45-
Func<ValueTask> execute,
46-
Func<bool> canExecute = null,
47-
Action<Exception> onException = null,
48-
bool continueOnCapturedContext = false,
49-
bool allowsMultipleExecutions = true) =>
50-
new AsyncValueCommand(execute, canExecute, onException, continueOnCapturedContext, allowsMultipleExecutions);
51-
52-
public static IAsyncValueCommand<TExecute> Create<TExecute>(
53-
Func<TExecute, ValueTask> execute,
54-
Func<bool> canExecute = null,
55-
Action<Exception> onException = null,
56-
bool continueOnCapturedContext = false,
57-
bool allowsMultipleExecutions = true) =>
58-
new AsyncValueCommand<TExecute>(execute, canExecute, onException, continueOnCapturedContext, allowsMultipleExecutions);
59-
60-
public static IAsyncValueCommand<TExecute, TCanExecute> Create<TExecute, TCanExecute>(
61-
Func<TExecute, ValueTask> execute,
62-
Func<TCanExecute, bool> canExecute = null,
63-
Action<Exception> onException = null,
64-
bool continueOnCapturedContext = false,
65-
bool allowsMultipleExecutions = true) =>
66-
new AsyncValueCommand<TExecute, TCanExecute>(execute, canExecute, onException, continueOnCapturedContext, allowsMultipleExecutions);
67-
6844
static Action<object> ConvertExecute<T>(Action<T> execute)
6945
{
7046
if (execute == null)

0 commit comments

Comments
 (0)