Skip to content
Snippets Groups Projects
Commit 2f7f2c98 authored by falood's avatar falood
Browse files

add docs for named monitor to README

parent 8cb69221
Branches CarloS
No related tags found
No related merge requests found
......@@ -42,6 +42,13 @@ You can spawn a worker and subscribe to events from it:
FileSystem.subscribe(pid)
```
or
```elixir
{:ok, pid} = FileSystem.start_link(dirs: ["/path/to/some/files"], name: :my_monitor_name)
FileSystem.subscribe(:my_monitor_name)
```
The pid you subscribed from will now receive messages like
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment