This function doesn’t return to the REPL; it keeps working to watch the file and report any changes (until you press ctrl-c or close the terminal). You could do @async report_and_watch_file(...) if you want to get the REPL back, or just do it in another terminal window.
3 Likes