<PackageReference Include="System.ServiceModel.Primitives" Version="6.0.0-preview1.23060.3" />

System.Runtime.TaskHelpers

public static class TaskHelpers
public sealed delegate EndWithOutDelegate<T1, TResult> : MulticastDelegate

public static Action<object> OnAsyncCompletionCallback

public static Task AsyncWait<TException>(this Task task)

public static Task<bool> AwaitWithTimeout(this Task task, TimeSpan timeout)

public static Task CallActionAsync<TArg>(Action<TArg> action, TArg argument)

public static Task CloseHelperAsync(this ICommunicationObject communicationObject, TimeSpan timeout)

public static Task CompletedTask()

public static Task<ValueTuple<TOut1, TOut2>> FromAsync<TIn, TOut1, TOut2>(Func<TIn, AsyncCallback, object, IAsyncResult> beginDelegate, EndWithOutDelegate<TOut2, TOut1> endDelegate, TIn arg1, object state)

public static Task OpenHelperAsync(this ICommunicationObject communicationObject, TimeSpan timeout)

public static Task<TResult> ToApm<TResult>(this Task<TResult> task, AsyncCallback callback, object state)

public static Task ToApm(this Task task, AsyncCallback callback, object state)

public static TResult ToApmEnd<TResult>(this IAsyncResult iar)

public static void ToApmEnd(this IAsyncResult iar)

public static void Wait(this Task task, TimeSpan timeout, Action<Exception, TimeSpan, string> exceptionConverter, string operationType)

public static void WaitForCompletion(this Task task)

public static TResult WaitForCompletion<TResult>(this Task<TResult> task)

public static void WaitForCompletionNoSpin(this Task task)

public static TResult WaitForCompletionNoSpin<TResult>(this Task<TResult> task)

public static bool WaitForCompletionNoSpin(this Task task, TimeSpan timeout)