TaskUtilities Class¶
- Namespace
Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure- Assemblies
- Microsoft.AspNetCore.Server.Kestrel
Syntax¶
public class TaskUtilities
-
class
Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure.TaskUtilities
Methods¶
-
GetCancelledTask(System.Threading.CancellationToken)¶ Return type: System.Threading.Tasks.Task public static Task GetCancelledTask(CancellationToken cancellationToken)
-
GetCancelledZeroTask(System.Threading.CancellationToken)¶ Return type: System.Threading.Tasks.Task<System.Int32> public static Task<int> GetCancelledZeroTask(CancellationToken cancellationToken = null)
-