Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Rotor.watch :all_files_in_project_root, ["*"], fn(changed, all)->
IO.inspect "CHANGED FILES"
IO.inspect changed
IO.inspect "ALL FILES"
IO.inspect all
end
# Options can be passed as a 4th arg after the rotor function.
# Currently available option is `interval`.
# Default polling interval is 2500 (2.5 seconds).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment