libgs.utils.
wait_loop
Generic waiting loop. It will wait for any event (of type threading.Event) to be set, or for any callable to return True