public static Task<bool> SortAsync<TKey, TValue>(
ArraySection<TKey> keys,
ArraySection<TValue> values,
IComparer<TKey>? comparer = null,
TaskConfig? asyncConfig = null
)
Public Shared Function SortAsync(Of TKey, TValue) (
keys As ArraySection(Of TKey),
values As ArraySection(Of TValue),
Optional comparer As IComparer(Of TKey) = Nothing,
Optional asyncConfig As TaskConfig = Nothing
) As Task(Of Boolean)public:
generic<typename TKey, typename TValue>
static Task<bool>^ SortAsync(
ArraySection<TKey> keys,
ArraySection<TValue> values,
IComparer<TKey>^ comparer = nullptr,
TaskConfig^ asyncConfig = nullptr
)static member SortAsync :
keys : ArraySection<'TKey> *
values : ArraySection<'TValue> *
?comparer : IComparer<'TKey> *
?asyncConfig : TaskConfig
(* Defaults:
let _comparer = defaultArg comparer null
let _asyncConfig = defaultArg asyncConfig null
*)
-> Task<bool> This method is not a blocking call even if the MaxDegreeOfParallelism property of the asyncConfig parameter is 1.
| ArgumentException | The IsNull property of values is and values has fewer elements than keys.
-or- The comparer returned inconsistent results. |
| InvalidOperationException | comparer is , and an element does not implement the IComparableT interface. |
| TaskCanceledException | The operation has been canceled and ThrowIfCanceled in asyncConfig was . This exception is thrown when the result is awaited. |