Filewatcher example

This commit is contained in:
Michiel Borkent 2020-12-26 21:51:02 +01:00
parent 6b2c03d617
commit 4f7b6fe11d

10
examples/filewatcher.clj Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env bb
(require '[babashka.pods :as pods])
(pods/load-pod 'org.babashka/filewatcher "0.0.1-SNAPSHOT")
(require '[pod.babashka.filewatcher :as fw])
(fw/watch "/tmp" (fn [event] (prn event)) {:delay-ms 50})
@(promise)