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)

Fields

CompletedTask()
Return type:System.Threading.Tasks.Task
public static Task CompletedTask
ZeroTask()
Return type:System.Threading.Tasks.Task<System.Int32>
public static Task<int> ZeroTask