A basic coroutine wrapper for C#