diff --git a/README.md b/README.md index 40b8e3a3bd7fabdd834fd05a5129c2f770b6fa15..e35b5c28cc63a2c83940401cf323fafdd2e5aa69 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 ```