Module to encapsulate protected calls with a coroutine based loop
