added run_until_complete to the EventLoop api