public static Task<bool> SortAsync<T>(
ArraySection<T> array,
IComparer<T>? comparer = null,
TaskConfig? asyncConfig = null
)
Public Shared Function SortAsync(Of T) (
array As ArraySection(Of T),
Optional comparer As IComparer(Of T) = Nothing,
Optional asyncConfig As TaskConfig = Nothing
) As Task(Of Boolean)public:
generic<typename T>
static Task<bool>^ SortAsync(
ArraySection<T> array,
IComparer<T>^ comparer = nullptr,
TaskConfig^ asyncConfig = nullptr
)static member SortAsync :
array : ArraySection<'T> *
?comparer : IComparer<'T> *
?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 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. |