fork download
  1. using System;
  2. using System.Threading.Tasks;
  3.  
  4. public class Test
  5. {
  6. static void Main(string[] args)
  7. {
  8. Foo();
  9. Console.WriteLine("return from Foo");
  10. }
  11.  
  12. private static async void Foo()
  13. {
  14. await Task.Yield();
  15. Console.WriteLine("Foo done");
  16. }
  17. }
Success #stdin #stdout 0.03s 25228KB
stdin
Standard input is empty
stdout
Foo done
return from Foo