From 9d5196d23304504787c47f3f0de32258f4c2781e Mon Sep 17 00:00:00 2001 From: George Lemon Date: Sat, 17 Feb 2024 21:24:55 +0200 Subject: [PATCH] watchout with a short delay Signed-off-by: George Lemon --- src/tim.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tim.nim b/src/tim.nim index 6c1e310..3b5121d 100755 --- a/src/tim.nim +++ b/src/tim.nim @@ -146,7 +146,7 @@ proc precompile*(engine: TimEngine, callback: TimCallback = nil, engine.clearTemplateByPath(file.getPath()) var w = newWatchout(@[engine.getSourcePath() / "*"], onChange, - onFound, onDelete, recursive = true, ext = @["timl"]) + onFound, onDelete, recursive = true, ext = @["timl"], delay = 200) # start browser sync server in a separate thread createThread(sync, browserSync, (browserSyncPort, browserSyncDelay)) # start filesystem monitor in a separate thread