public override void Execute() { #if TRACK_DETAILED_STATS if (StatisticsCollector.CollectGlobalShedulerStats) { SchedulerStatisticsGroup.OnClosureWorkItemsExecuted(); } #endif continuation(); }
public override async void Execute() { #if TRACK_DETAILED_STATS if (StatisticsCollector.CollectGlobalShedulerStats) { SchedulerStatisticsGroup.OnClosureWorkItemsExecuted(); } #endif try { RequestContext.Clear(); await this.continuation(); this.completion.TrySetResult(true); } catch (Exception exception) { this.completion.TrySetException(exception); } }