Methods

public : static IAsyncAction RunAsync(WorkItemHandler handler)public static IAsyncAction RunAsync(WorkItemHandler handler)Public Static Function RunAsync(handler As WorkItemHandler) As IAsyncAction// This API is not available in Javascript.

If this parameter is TimeSliced, the work item runs simultaneously with other time-sliced work items with each work item receiving a share of processor time. If this parameter is None, the work item runs when a worker thread becomes available.