using System.Threading.Tasks;
Console.WriteLine($"Running antecedent task {Task.CurrentId}...");
Console.WriteLine("Launching attached child tasks...");
for (int ctr = 1; ctr <= 5; ctr++)
Console.WriteLine($" Attached child task #{value} running");
Console.WriteLine("Finished launching detached child tasks...");
}, TaskCreationOptions.DenyChildAttach);
Console.WriteLine($"Executing continuation of Task {antecedent.Id}"));