process_utils: add get_loop function for async