Skip to content

Commit

Permalink
Change example to fit new channel changes
Browse files Browse the repository at this point in the history
  • Loading branch information
passcod committed Jan 6, 2015
1 parent 327075c commit e23bd7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ ignored and counted as bugfixes; the compatibility is for this API only.
extern crate notify;

use notify::{RecommendedWatcher, Error, Watcher};
use std::sync::mpsc::channel;

fn main() {
// Create a channel to receive the events.
Expand Down Expand Up @@ -62,6 +63,8 @@ fn main() {
- polling backend only handles `op::WRITE`s
- see `TODO` comments in the code for more

Pull requests and bug reports happily accepted!

## Origins

Inspired by Go's [fsnotify](https://github.com/go-fsnotify/fsnotify), born out
Expand Down

0 comments on commit e23bd7f

Please sign in to comment.