using System.Threading.Tasks;
static object l=new object();
public static void Main()
var action = (object unused) =>
Console.WriteLine($"Hello World {local}");
var action1 = (object unused) => Task.Run(() =>
Console.WriteLine($"Hello World {local}");
t=Task.Run(()=>action(null));
t=t.ContinueWith(action);
t=t.ContinueWith(action);
t=t.ContinueWith(action);
t=t.ContinueWith(action);
t=t.ContinueWith(action);
t=t.ContinueWith(action);
t=t.ContinueWith(action);
t=t.ContinueWith(action);
t=t.ContinueWith(action);
t=t.ContinueWith(action);
t=t.ContinueWith(action);
t=t.ContinueWith(action);
t=t.ContinueWith(action);
t=t.ContinueWith(action);
t=t.ContinueWith(action);
t=t.ContinueWith(action);
t=t.ContinueWith(action);
t=t.ContinueWith(action);
t=t.ContinueWith(action);
t=t.ContinueWith(action);