From 2f7f2c9824078d0c5bc12cc00b083dc566d358a0 Mon Sep 17 00:00:00 2001
From: falood <falood@gmail.com>
Date: Sun, 23 Jul 2017 08:45:26 -0700
Subject: [PATCH] add docs for named monitor to README

---
 README.md | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/README.md b/README.md
index 40b8e3a..e35b5c2 100644
--- a/README.md
+++ b/README.md
@@ -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
 
 ```
-- 
GitLab