MainLoopAsync Proof of concept, Extend the async method in C#. Inspired by thin_main_loop References Sergey Teplyakov: Extending the async methods in C#