Maybe something about this should be added as documentation for this function?
On Mon, Apr 7, 2014 at 8:21 PM, Jacques Rioux <[email protected]>wrote: > Ok, I figured it out: > > julia> wf = watch_file((fn, ev, st) -> begin > println("File Name : " *string(fn)) > println("Event : " *string(ev)) > println("Status : " *string(st)) > end, > "c:\\Bits\\watch.txt") > FileMonitor(Ptr{Void} @0x0000000005d40e50,(anonymous > function),false,Condition({ > })) > > julia> File Name : watch.txt > Event : FileEvent(false,true,false) > Status : 0 > File Name : watch.txt > Event : FileEvent(false,true,false) > Status : 0 > File Name : watch.txt > Event : FileEvent(false,true,false) > Status : 0 > > > julia> methodswith(typeof(wf)) > 2-element Array{Method,1}: > wait(m::FileMonitor) at poll.jl:231 > close(t::FileMonitor) at poll.jl:22 > > julia> close(wf) > > Et voila! >
