Filewatcher example
This commit is contained in:
parent
6b2c03d617
commit
4f7b6fe11d
1 changed files with 10 additions and 0 deletions
10
examples/filewatcher.clj
Executable file
10
examples/filewatcher.clj
Executable 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)
|
||||
Loading…
Reference in a new issue