A RunLoop for your Swift script https://alejandromp.com/development/blog/a-runloop-for-your-swift-script