TaskEx
Delay(Int32)
Delay(TimeSpan)
Delay(Int32, CancellationToken)
Delay(TimeSpan, CancellationToken)
FromResult<TResult>(TResult)
Run(Action)
Run(Action, CancellationToken)
Run(Func<Task>)
Run<TResult>(Func<Task<TResult>>)
Run<TResult>(Func<TResult>)
Run(Func<Task>, CancellationToken)
Run<TResult>(Func<Task<TResult>>, CancellationToken)
Run<TResult>(Func<TResult>, CancellationToken)
WhenAll(Task[])
WhenAll(IEnumerable<Task>)
WhenAll<TResult>(IEnumerable<Task<TResult>>)
WhenAll<TResult>(Task<TResult>[])
WhenAny(Task[])
WhenAny(IEnumerable<Task>)
WhenAny<TResult>(IEnumerable<Task<TResult>>)
WhenAny<TResult>(Task<TResult>[])
Yield()
net9.0-android34.0
namespace System.Threading.Tasks
{
public static class TaskEx : ?
{
public static Task<TResult> Run<TResult>(? function);
}
}
| .NET | 6.07.08.09.0 |
|---|---|
| .NET Framework | 4.04.54.5.14.5.24.64.6.14.6.24.74.7.14.7.24.84.8.1 |
Information specific to net9.0 | |
| Platforms | This API is only available when you target a specific platform: |
| Android | 21.022.023.024.025.026.027.028.029.030.031.032.033.034.0 |
Information specific to net9.0-android34.0 | |
| Assembly | Microsoft.Threading.Tasks , Version=1.0.12.0, PublicKeyToken=b03f5f7f11d50a3a |
| Referencing | Your project needs a package reference to |
| Package | Microsoft.Bcl.Async (1.0.168) portable-net45+win8+wpa81 |
| Platform Restrictions | This API is only supported on the following platforms:
|
- Built-in API
- Package-provided API