using System.Threading.Tasks;
public static void Main()
Console.WriteLine("Hello World");
p.PublicUpdateStatus("one");
catch(System.Exception e)
Console.WriteLine("Exception, "+e.Message);
Console.WriteLine("Goodbuy World");
public void PublicUpdateStatus(string input)
catch(System.Exception e)
Console.WriteLine("Exception, "+e.Message);
public async Task PrivateUpdate(string input)
catch(System.Exception e)
Console.WriteLine("Exception do, "+e.Message);
public async Task Audur(string input)
Task task = Task.Factory.StartNew(() =>
System.Threading.Thread.Sleep(1000);
throw new Exception($"Ohhh noooo {input} async!");
await task.ConfigureAwait(false);