aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/world/file/watch.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/library/lux/world/file/watch.lux')
-rw-r--r--stdlib/source/library/lux/world/file/watch.lux6
1 files changed, 3 insertions, 3 deletions
diff --git a/stdlib/source/library/lux/world/file/watch.lux b/stdlib/source/library/lux/world/file/watch.lux
index e1e572023..bfe64cca1 100644
--- a/stdlib/source/library/lux/world/file/watch.lux
+++ b/stdlib/source/library/lux/world/file/watch.lux
@@ -128,7 +128,7 @@
[last_modified (\ fs last_modified file)]
(in (dictionary.put file last_modified tracker))))
(: File_Tracker
- (dictionary.new text.hash))
+ (dictionary.empty text.hash))
files)))
(def: (poll_files fs directory)
@@ -185,7 +185,7 @@
(def: #export (polling fs)
(-> (//.System Async) (Watcher Async))
(let [tracker (: (Var Directory_Tracker)
- (stm.var (dictionary.new text.hash)))]
+ (stm.var (dictionary.empty text.hash)))]
(implementation
(def: (start new_concern path)
(do {! async.monad}
@@ -411,7 +411,7 @@
[watcher (java/nio/file/FileSystem::newWatchService
(java/nio/file/FileSystems::getDefault))
#let [tracker (stm.var (: (Dictionary //.Path [Concern java/nio/file/WatchKey])
- (dictionary.new text.hash)))
+ (dictionary.empty text.hash)))
stop (: (-> //.Path (Async (Try Concern)))
(function (_ path)