jslatts/stalker

Clean shutdown / cancelation

Closed this issue · 3 comments

Currently there isn't any way to cancel a watch for a path.

Perhaps it would be nice if watch() returned an object with a cancel method.

Yeah, this should probably happen. I'll add it in.

Implemented in SHA: 721bdb5. Tested by hand. Should write unit tests.

I lied. Most of the implementation is in sha: 7ce0bc3