I have two files, both 1 byte big (containing nothing more than "1" or "0").
Now inside of the main loop of a program written in Clojure, I would want to wait until either of the files have changed before proceeding. This could be done by busy-waiting, polling the files for changes using slurp. But this is a waste of resources.
How could I do this without busy-waiting?