Do

static void Do(Action action, TimeSpan? timeSpan=null){
  if(!timeSpan.HasValue){timeSpan =TimeSpan.FromMilliseconds(100);}
  Task.WaitAll( new []{Task.Run(action)},timeSpan.Value);
}