Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
samanklesaria committed Apr 30, 2020
1 parent 26f14fe commit c5cbfee
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Revise.jl
Original file line number Diff line number Diff line change
Expand Up @@ -819,9 +819,13 @@ function entr(f::Function, files, modules=nothing; postpone=false, pause=0.02)
@sync begin
postpone || f()
for file in files
waitfor = isdir(file) ? watch_folder : watch_file
is_file_dir = isdir(file)
@async while active
ret = waitfor(file, 1)
if is_file_dir
ret = watch_folder(file, 1)[2]
else
ret = watch_File(file, 1)
end
if active && (ret.changed || ret.renamed)
sleep(pause)
revise()
Expand Down

0 comments on commit c5cbfee

Please sign in to comment.