Skip to content

Bug with unwatching #3

@AhmedSalih3d

Description

@AhmedSalih3d

Hello!

Testing your code:

using BetterFileWatching

watch_task = @async watch_folder(".") do event
    @info "Something changed!" event
    @info typeof(event)
end

sleep(5)

# stop watching the folder
schedule(watch_task, InterruptException(); error=true)

After the task is done, it keeps registering changes unfortunately in the folder. How to fix?

Kind regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions